mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +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() {
|
||||
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 GenericParser;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user