diff options
author | Eric Christopher <echristo@apple.com> | 2011-12-04 06:02:38 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-12-04 06:02:38 +0000 |
commit | 309bedd7bc37554cdb41c76737284150dc842a4a (patch) | |
tree | 4a9e7d22179318680fb3de61438bf5748caf396d /lib | |
parent | 6ce2deacefa5fd2565983d513d07a06d6a8af602 (diff) | |
download | external_llvm-309bedd7bc37554cdb41c76737284150dc842a4a.zip external_llvm-309bedd7bc37554cdb41c76737284150dc842a4a.tar.gz external_llvm-309bedd7bc37554cdb41c76737284150dc842a4a.tar.bz2 |
Add inline subprogram names to the name lookup table since they may
not get there any other way.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 1a216c0..a3db96a 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -442,6 +442,10 @@ DIE *DwarfDebug::constructInlinedScopeDIE(CompileUnit *TheCU, TheCU->addUInt(ScopeDIE, dwarf::DW_AT_call_file, 0, TheCU->getID()); TheCU->addUInt(ScopeDIE, dwarf::DW_AT_call_line, 0, DL.getLineNumber()); + // Add name to the name table, we do this here because we're guaranteed + // to have concrete versions of our DW_TAG_inlined_subprogram nodes. + addSubprogramNames(TheCU, InlinedSP, ScopeDIE); + return ScopeDIE; } |