summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-27 18:37:51 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-05-27 18:37:51 +0000
commit0fb9226470d8b5f4da5f08d84adc75849f7cc920 (patch)
treeb6c5eed0d55743a730c67c06a7b4a2e7aa230c54 /lib/CodeGen/AsmPrinter
parent254d093f991287bea06e47c27ef2e14db36b1c59 (diff)
downloadllvm-0fb9226470d8b5f4da5f08d84adc75849f7cc920.tar.gz
llvm-0fb9226470d8b5f4da5f08d84adc75849f7cc920.tar.bz2
llvm-0fb9226470d8b5f4da5f08d84adc75849f7cc920.tar.xz
DebugInfo: Avoid an extra map lookup when finding abstract subprogram DIEs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 421cdbd95f..c28c20d68a 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -435,7 +435,7 @@ DwarfDebug::constructInlinedScopeDIE(DwarfCompileUnit &TheCU,
DISubprogram InlinedSP = getDISubprogram(DS);
// Find the subprogram's DwarfCompileUnit in the SPMap in case the subprogram
// was inlined from another compile unit.
- DIE *OriginDIE = SPMap[InlinedSP]->getDIE(InlinedSP);
+ DIE *OriginDIE = AbstractSPDies[InlinedSP];
assert(OriginDIE && "Unable to find original DIE for an inlined subprogram.");
auto ScopeDIE = make_unique<DIE>(dwarf::DW_TAG_inlined_subroutine);