[PATCH] D12913: Fixed debug info emitting for imported entity defined directly in a function scope.
Amjad Aboud via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 14:31:24 PDT 2015
aaboud created this revision.
aaboud added a reviewer: dblaikie.
aaboud added a subscriber: llvm-commits.
aaboud set the repository for this revision to rL LLVM.
Imported entity defined in a lexical block is handled correctly by emitting a debug info entry in each lexical block instance (abstract, inline and concrete), if it has code.
However, if the imported entity was defined in a function scope (top level), it is emitted only in the concrete function, even if it has no code!
This patch solve the issue by handling imported entity defined in a function scope similar to the one defined in a lexical block scope.
Repository:
rL LLVM
http://reviews.llvm.org/D12913
Files:
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/imported_entities.ll
test/DebugInfo/namespace.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12913.34926.patch
Type: text/x-patch
Size: 11208 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150916/935adfda/attachment.bin>
More information about the llvm-commits
mailing list