mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
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
This commit is contained in:
parent
62c8e8e3f6
commit
e77546c3c3
@ -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.
|
||||
|
@ -239,6 +239,7 @@ public:
|
||||
// Public Implementation
|
||||
public:
|
||||
DwarfAccelTable(DwarfAccelTable::Atom Atom);
|
||||
~DwarfAccelTable();
|
||||
void AddName(StringRef, DIE*);
|
||||
void FinalizeTable(AsmPrinter *, const char *);
|
||||
void Emit(AsmPrinter *, MCSymbol *, DwarfDebug *);
|
||||
|
Loading…
x
Reference in New Issue
Block a user