diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-05-16 19:42:10 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-05-16 19:42:10 +0000 |
| commit | 0c2d969bb0cf50189b594240a6116aae4cb367d3 (patch) | |
| tree | e42a7349d2dae5ea1b8ed2fee3e341621145bdf2 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
| parent | 27c076ae40ec65d1a9462d41f3709b305e641fa1 (diff) | |
| download | llvm-0c2d969bb0cf50189b594240a6116aae4cb367d3.tar.gz llvm-0c2d969bb0cf50189b594240a6116aae4cb367d3.tar.bz2 llvm-0c2d969bb0cf50189b594240a6116aae4cb367d3.tar.xz | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index edd357d7ab..4cb4dc13c5 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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); |
