diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-09-09 23:13:01 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-09-09 23:13:01 +0000 |
commit | d0f103775a66232fae4a54fc29fdc031f3436d38 (patch) | |
tree | 997beaa9aa8767527e313dd8605375ad7f7133f3 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 6485fe4b07b0ea3003b727729ee8f0b8867e0381 (diff) | |
download | bcm5719-llvm-d0f103775a66232fae4a54fc29fdc031f3436d38.tar.gz bcm5719-llvm-d0f103775a66232fae4a54fc29fdc031f3436d38.zip |
Sink PrevCU updating into DwarfUnit::addRange to ensure consistency
So that the two operations in DwarfDebug couldn't get separated (because
I accidentally separated them in some work in progress), put them
together. While we're here, move DwarfUnit::addRange to
DwarfCompileUnit, since it's not relevant to type units.
llvm-svn: 217468
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 663ebef250b..51a8b8d1dfb 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1709,7 +1709,6 @@ void DwarfDebug::endFunction(const MachineFunction *MF) { // Add the range of this function to the list of ranges for the CU. RangeSpan Span(FunctionBeginSym, FunctionEndSym); TheCU.addRange(std::move(Span)); - PrevCU = &TheCU; // Clear debug info // Ownership of DbgVariables is a bit subtle - ScopeVariables owns all the |