[llvm-commits] [llvm] r171475 - in /llvm/trunk/lib: CodeGen/MachineModuleInfo.cpp MC/MCObjectStreamer.cpp MC/MCStreamer.cpp
Pedro Artigas
partigas at apple.com
Fri Jan 4 10:04:43 PST 2013
Author: partigas
Date: Fri Jan 4 12:04:42 2013
New Revision: 171475
URL: http://llvm.org/viewvc/llvm-project?rev=171475&view=rev
Log:
small fixes to enable the reuse of the pass manager across multiple modules
Modified:
llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp
llvm/trunk/lib/MC/MCObjectStreamer.cpp
llvm/trunk/lib/MC/MCStreamer.cpp
Modified: llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp?rev=171475&r1=171474&r2=171475&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp Fri Jan 4 12:04:42 2013
@@ -266,7 +266,6 @@
}
MachineModuleInfo::~MachineModuleInfo() {
- delete ObjFileMMI;
}
bool MachineModuleInfo::doInitialization(Module &M) {
@@ -294,6 +293,9 @@
Context.reset();
+ delete ObjFileMMI;
+ ObjFileMMI = 0;
+
return false;
}
Modified: llvm/trunk/lib/MC/MCObjectStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectStreamer.cpp?rev=171475&r1=171474&r2=171475&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCObjectStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCObjectStreamer.cpp Fri Jan 4 12:04:42 2013
@@ -47,6 +47,7 @@
void MCObjectStreamer::reset() {
if (Assembler)
Assembler->reset();
+ CurSectionData = 0;
MCStreamer::reset();
}
Modified: llvm/trunk/lib/MC/MCStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCStreamer.cpp?rev=171475&r1=171474&r2=171475&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCStreamer.cpp Fri Jan 4 12:04:42 2013
@@ -41,7 +41,6 @@
EmitDebugFrame = false;
CurrentW64UnwindInfo = 0;
LastSymbol = 0;
- AutoInitSections = false;
const MCSection *section = NULL;
SectionStack.clear();
SectionStack.push_back(std::make_pair(section, section));
More information about the llvm-commits
mailing list