From 9f78bf2ff75f0267a2263be83828d93d09f2c806 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Fri, 27 Feb 2004 21:15:40 +0000 Subject: [PATCH] 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 --- lib/Target/SparcV9/SparcV9TargetMachine.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp index 293937276b0..9611c1041ec 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) -- 2.34.1