mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix a leak I noticed while reviewing the accelerator table changes. Passes
lldb testsuite. rdar://10652330 llvm-svn: 147673
This commit is contained in:
parent
a7d1b796b9
commit
4da10009fd
@ -51,6 +51,11 @@ DwarfAccelTable::DwarfAccelTable(std::vector<DwarfAccelTable::Atom> &atomList) :
|
||||
DwarfAccelTable::~DwarfAccelTable() {
|
||||
for (size_t i = 0, e = Data.size(); i < e; ++i)
|
||||
delete Data[i];
|
||||
for (StringMap<DataArray>::iterator
|
||||
EI = Entries.begin(), EE = Entries.end(); EI != EE; ++EI)
|
||||
for (DataArray::iterator DI = (*EI).second.begin(),
|
||||
DE = (*EI).second.end(); DI != DE; ++DI)
|
||||
delete (*DI);
|
||||
}
|
||||
|
||||
void DwarfAccelTable::AddName(StringRef Name, DIE* die, char Flags) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user