summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-02-19 16:51:44 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-02-19 16:51:44 +0000
commitb3aa2b8497c58a7fabf1487cbbf940af0ed35270 (patch)
tree88e0fdab489c480418b993c2649fbf8937d19fdf /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parent6aa4fc389e542fce1b0d527f19c36d4d96fcd6ec (diff)
downloadbcm5719-llvm-b3aa2b8497c58a7fabf1487cbbf940af0ed35270.tar.gz
bcm5719-llvm-b3aa2b8497c58a7fabf1487cbbf940af0ed35270.zip
Fix GCMetadaPrinter::finishAssembly not executed, patch by Yiannis Tsiouris.
Due to the execution order of doFinalization functions, the GC information were deleted before AsmPrinter::doFinalization was executed. Thus, the GCMetadataPrinter::finishAssembly was never called. The patch fixes that by moving the code of the GCInfoDeleter::doFinalization to Printer::doFinalization. llvm-svn: 175528
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 12cd2d1c089..1a098378348 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -226,7 +226,6 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
PM.add(Printer);
- PM.add(createGCInfoDeleter());
return false;
}
@@ -245,7 +244,6 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(PassManagerBase &PM,
return true;
addCodeEmitter(PM, JCE);
- PM.add(createGCInfoDeleter());
return false; // success!
}
OpenPOWER on IntegriCloud