[PATCH] D63361: Pretend NRVO variables are references so they can be found by debug info

Amy Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 11:25:26 PDT 2019


akhuang updated this revision to Diff 205649.
akhuang added a comment.

- Add clang and llvm tests, and windows debuginfo test
- Use GEP as returnValuePointer in inalloca case
- Add bool parameter for EmitDeclare when pointer is being used


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63361/new/

https://reviews.llvm.org/D63361

Files:
  clang/lib/CodeGen/CGDebugInfo.cpp
  clang/lib/CodeGen/CGDebugInfo.h
  clang/lib/CodeGen/CGDecl.cpp
  clang/lib/CodeGen/CodeGenFunction.cpp
  clang/lib/CodeGen/CodeGenFunction.h
  clang/test/CodeGenCXX/debug-info-nrvo.cpp
  debuginfo-tests/nrvo-string.cpp
  debuginfo-tests/win_cdb/nrvo.cpp
  llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  llvm/test/DebugInfo/COFF/nrvo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63361.205649.patch
Type: text/x-patch
Size: 19041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190619/ebd57b26/attachment.bin>


More information about the llvm-commits mailing list