mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
MC: Destroy Macro instances.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109720 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e6cbfa6b09
commit
56491303a6
@ -279,6 +279,13 @@ AsmParser::AsmParser(const Target &T, SourceMgr &_SM, MCContext &_Ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
AsmParser::~AsmParser() {
|
AsmParser::~AsmParser() {
|
||||||
|
assert(ActiveMacros.empty() && "Unexpected active macro instantiation!");
|
||||||
|
|
||||||
|
// Destroy any macros.
|
||||||
|
for (StringMap<Macro*>::iterator it = MacroMap.begin(),
|
||||||
|
ie = MacroMap.end(); it != ie; ++it)
|
||||||
|
delete it->getValue();
|
||||||
|
|
||||||
delete PlatformParser;
|
delete PlatformParser;
|
||||||
delete GenericParser;
|
delete GenericParser;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user