aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-11-07 21:49:28 +0000
committerEric Christopher <echristo@apple.com>2011-11-07 21:49:28 +0000
commite77546c3c3634863a79ffc3adea52882685db454 (patch)
treef5431bfd06d9af3f200cebbef1bd3e41e647d88d /lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
parent62c8e8e3f65a2943cedbce37a6b9b47653f0ea0a (diff)
downloadexternal_llvm-e77546c3c3634863a79ffc3adea52882685db454.zip
external_llvm-e77546c3c3634863a79ffc3adea52882685db454.tar.gz
external_llvm-e77546c3c3634863a79ffc3adea52882685db454.tar.bz2
Simple destructor to delete the hash data we created earlier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp b/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
index 2f175d4..6a32ab6 100644
--- a/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
@@ -42,6 +42,11 @@ DwarfAccelTable::DwarfAccelTable(DwarfAccelTable::Atom atom) :
HeaderData(atom) {
}
+DwarfAccelTable::~DwarfAccelTable() {
+ for (size_t i = 0 ; i < Data.size(); ++i)
+ delete Data[i];
+}
+
void DwarfAccelTable::AddName(StringRef Name, DIE* die) {
// If the string is in the list already then add this die to the list
// otherwise add a new one.