aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit9f78bf2ff75f0267a2263be83828d93d09f2c806 (patch)
tree0517085047663bd4089524de44eb0bb9bbe71c32 /lib
parent3d1fdee339bc9cdb55f1ef0631cb18b4240abb64 (diff)
downloadexternal_llvm-9f78bf2ff75f0267a2263be83828d93d09f2c806.zip
external_llvm-9f78bf2ff75f0267a2263be83828d93d09f2c806.tar.gz
external_llvm-9f78bf2ff75f0267a2263be83828d93d09f2c806.tar.bz2
Turn off the SparcV9MachineCodeDestructionPass for now, because it's buggy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SparcV9/SparcV9TargetMachine.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index 2939372..9611c10 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/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)