summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-15 00:03:15 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-02-15 00:03:15 +0000
commit6a35516dccb6f284a22801530121391d4a3a10fa (patch)
treea37afbfeeda615ea8897a272a38868220806ccca /llvm/lib/Target/X86/X86TargetMachine.cpp
parentfccb75d91ee4dd9c34ba56a1279c5f5501306a32 (diff)
downloadbcm5719-llvm-6a35516dccb6f284a22801530121391d4a3a10fa.tar.gz
bcm5719-llvm-6a35516dccb6f284a22801530121391d4a3a10fa.zip
Add back machine code deleter pass until we get a MachineCode pass
that will be responsible for the creation of MachineFunctions and will be required by all MachineFunctionPass passes. llvm-svn: 11453
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index c411f86123e..83a390edaf8 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -104,6 +104,9 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM,
if (!DisableOutput)
PM.add(createX86CodePrinterPass(Out, *this));
+ // Delete machine code for this function
+ PM.add(createMachineCodeDeleter());
+
return false; // success!
}
OpenPOWER on IntegriCloud