summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-02-27 21:15:40 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-02-27 21:15:40 +0000
commitffeef64177f14aa33abb14bb585f1509363b97b4 (patch)
tree3987b9bf710cc8376bb9af8fea922220a8c55bd1 /llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
parent50d19bf1de50c889a25f434cfa3f2718a5ddb195 (diff)
downloadbcm5719-llvm-ffeef64177f14aa33abb14bb585f1509363b97b4.tar.gz
bcm5719-llvm-ffeef64177f14aa33abb14bb585f1509363b97b4.zip
Turn off the SparcV9MachineCodeDestructionPass for now, because it's buggy
llvm-svn: 11930
Diffstat (limited to 'llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index 293937276b0..9611c1041ec 100644
--- a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -177,7 +177,12 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
// allowing machine code representations for functions to be free'd after the
// function has been emitted.
PM.add(createAsmPrinterPass(Out, *this));
- PM.add(createSparcV9MachineCodeDestructionPass()); // Free mem no longer needed
+
+ // FIXME: this pass crashes if added; there is a double deletion going on
+ // somewhere inside it. This is caught when running the SparcV9 code generator
+ // on X86, but is typically ignored when running natively.
+ // Free machine-code IR which is no longer needed:
+ // PM.add(createSparcV9MachineCodeDestructionPass());
// Emit bytecode to the assembly file into its special section next
if (EmitMappingInfo)
OpenPOWER on IntegriCloud