diff options
author | Eric Christopher <echristo@gmail.com> | 2013-12-03 00:45:45 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-12-03 00:45:45 +0000 |
commit | c2efbdbb6022149b6b94188efd85b72abe19b0ba (patch) | |
tree | da11ff9b576fd28cfe21ac1989c0bce49cfc9336 /lib/CodeGen/AsmPrinter/DwarfUnit.cpp | |
parent | 357fcf9d2ea79d43e4a1a29edb8608225c8f9a54 (diff) | |
download | llvm-c2efbdbb6022149b6b94188efd85b72abe19b0ba.tar.gz llvm-c2efbdbb6022149b6b94188efd85b72abe19b0ba.tar.bz2 llvm-c2efbdbb6022149b6b94188efd85b72abe19b0ba.tar.xz |
Make ranges and range lists be a discrete entity that can be located
and emitted per function and CU. Begins coalescing ranges as a first
class entity through debug info. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index c13930e4a6..d65862040c 100644 --- a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -59,6 +59,10 @@ TypeUnit::TypeUnit(unsigned UID, DIE *D, uint16_t Language, AsmPrinter *A, Unit::~Unit() { for (unsigned j = 0, M = DIEBlocks.size(); j < M; ++j) DIEBlocks[j]->~DIEBlock(); + for (SmallVectorImpl<RangeSpanList *>::iterator RI = getRangeLists().begin(), + RE = getRangeLists().end(); + RI != RE; ++RI) + delete *RI; } /// createDIEEntry - Creates a new DIEEntry to be a proxy for a debug |