[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Fri Feb 27 15:16:01 PST 2004


Changes in directory llvm/lib/Target/SparcV9:

SparcV9TargetMachine.cpp updated: 1.101 -> 1.102

---
Log message:

Turn off the SparcV9MachineCodeDestructionPass for now, because it's buggy


---
Diffs of the changes:  (+6 -1)

Index: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.101 llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.102
--- llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.101	Fri Feb 27 15:01:14 2004
+++ llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp	Fri Feb 27 15:15:40 2004
@@ -177,7 +177,12 @@
   // 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)





More information about the llvm-commits mailing list