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 | 8dda5d0f0647fbb86316a368b45d787c29c0ccbf (patch) | |
tree | 86c308d831b2460d5da296623631d874b031206e /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 15a430a368ba80ace64891fb35715f78c2673403 (diff) | |
download | bcm5719-llvm-8dda5d0f0647fbb86316a368b45d787c29c0ccbf.tar.gz bcm5719-llvm-8dda5d0f0647fbb86316a368b45d787c29c0ccbf.zip |
Add inline subprogram names to the name lookup table since they may
not get there any other way.
llvm-svn: 145789
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 1a216c0ddc0..a3db96aee1f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/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; } |