mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
MC: Destroy Macro instances.
llvm-svn: 109720
This commit is contained in:
parent
6a1da7b4a5
commit
7972ac4c88
@ -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