summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86CodeEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-26 04:35:26 +0000
committerChris Lattner <sabre@nondot.org>2010-01-26 04:35:26 +0000
commit6715952c2556cdd5ed8c5a0595e4bbae4560d17d (patch)
treea9bac51ef8736a33975a9f25d152aac5bf0da7ea /llvm/lib/Target/X86/X86CodeEmitter.cpp
parentf8f8ba8a47787209f125a3e859d6c803beeffbc3 (diff)
downloadbcm5719-llvm-6715952c2556cdd5ed8c5a0595e4bbae4560d17d.tar.gz
bcm5719-llvm-6715952c2556cdd5ed8c5a0595e4bbae4560d17d.zip
make MachineFunction keep track of its ID and make
MachineFunctionAnalysis dole them out, instead of having AsmPrinter do both. Have the AsmPrinter::SetupMachineFunction method set the 'AsmPrinter::MF' variable. llvm-svn: 94509
Diffstat (limited to 'llvm/lib/Target/X86/X86CodeEmitter.cpp')
-rw-r--r--llvm/lib/Target/X86/X86CodeEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86CodeEmitter.cpp b/llvm/lib/Target/X86/X86CodeEmitter.cpp
index 828e872cacb..e2c31395b20 100644
--- a/llvm/lib/Target/X86/X86CodeEmitter.cpp
+++ b/llvm/lib/Target/X86/X86CodeEmitter.cpp
@@ -921,7 +921,7 @@ public:
FunctionType::get(llvm::Type::getVoidTy(getGlobalContext()), false);
DummyF = Function::Create(FTy, GlobalValue::InternalLinkage);
DummyTD = new TargetData("");
- DummyMF = new MachineFunction(DummyF, TM);
+ DummyMF = new MachineFunction(DummyF, TM, 0);
DummyMBB = DummyMF->CreateMachineBasicBlock();
InstrEmitter = new MCSingleInstructionCodeEmitter();
OpenPOWER on IntegriCloud