mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +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() {
|
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