git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171475
91177308-0d34-0410-b5e6-
96231b3b80d8
}
MachineModuleInfo::~MachineModuleInfo() {
- delete ObjFileMMI;
}
bool MachineModuleInfo::doInitialization(Module &M) {
Context.reset();
+ delete ObjFileMMI;
+ ObjFileMMI = 0;
+
return false;
}
void MCObjectStreamer::reset() {
if (Assembler)
Assembler->reset();
+ CurSectionData = 0;
MCStreamer::reset();
}
EmitDebugFrame = false;
CurrentW64UnwindInfo = 0;
LastSymbol = 0;
- AutoInitSections = false;
const MCSection *section = NULL;
SectionStack.clear();
SectionStack.push_back(std::make_pair(section, section));