diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-10-09 17:08:42 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-10-09 17:08:42 +0000 |
commit | 0fbf8bdb08b837061e16f70c1f8884b2535f6153 (patch) | |
tree | e04d40bf70c5911e92dfadb57edcbbedb6e132e8 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | a09bd0a15aea8eeb17bd9a83002da9ba75292d3c (diff) | |
download | bcm5719-llvm-0fbf8bdb08b837061e16f70c1f8884b2535f6153.tar.gz bcm5719-llvm-0fbf8bdb08b837061e16f70c1f8884b2535f6153.zip |
Sink DwarfDebug::constructLexicalScopeDIE into DwarfCompileUnit
llvm-svn: 219414
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index c204e72cf38..a45e5ba0684 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -330,23 +330,6 @@ bool DwarfDebug::isLexicalScopeDIENull(LexicalScope *Scope) { return !getLabelAfterInsn(Ranges.front().second); } -// Construct new DW_TAG_lexical_block for this scope and attach -// DW_AT_low_pc/DW_AT_high_pc labels. -std::unique_ptr<DIE> -DwarfDebug::constructLexicalScopeDIE(DwarfCompileUnit &TheCU, - LexicalScope *Scope) { - if (isLexicalScopeDIENull(Scope)) - return nullptr; - - auto ScopeDIE = make_unique<DIE>(dwarf::DW_TAG_lexical_block); - if (Scope->isAbstractScope()) - return ScopeDIE; - - TheCU.attachRangesOrLowHighPC(*ScopeDIE, Scope->getRanges()); - - return ScopeDIE; -} - static std::unique_ptr<DIE> constructVariableDIE(DwarfCompileUnit &TheCU, DbgVariable &DV, const LexicalScope &Scope, |