summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-16 19:42:10 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-05-16 19:42:10 +0000
commit46d0ca5b4050d640d3dcd92a937d98ce5f8e891b (patch)
treef9d79e5dbca8a58a314a6f55bd9f9b1c68cda5d5 /llvm/lib
parentb2633b9793174e3f9dc1e2d8a6eceb76b1726399 (diff)
downloadbcm5719-llvm-46d0ca5b4050d640d3dcd92a937d98ce5f8e891b.tar.gz
bcm5719-llvm-46d0ca5b4050d640d3dcd92a937d98ce5f8e891b.zip
DebugInfo: Add an assert regarding the subprogram in the subprogram map matching the abstract subprogram.
I'm not sure this is how it'll be going forward (I'd rather prefer the definition to be in the main SP mapping, for various reasons) but this helps me understand how it is today. llvm-svn: 209009
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index edd357d7ab9..4cb4dc13c50 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -322,6 +322,7 @@ DIE &DwarfDebug::updateSubprogramScopeDIE(DwarfCompileUnit &SPCU,
// object pointer later on. But what we don't want to do is process the
// concrete DIE twice.
if (DIE *AbsSPDIE = AbstractSPDies.lookup(SP)) {
+ assert(SPDie == AbsSPDIE);
// Pick up abstract subprogram DIE.
SPDie = &SPCU.createAndAddDIE(dwarf::DW_TAG_subprogram, SPCU.getUnitDie());
SPCU.addDIEEntry(*SPDie, dwarf::DW_AT_abstract_origin, *AbsSPDIE);
OpenPOWER on IntegriCloud