diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-19 16:51:44 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-02-19 16:51:44 +0000 |
| commit | b3aa2b8497c58a7fabf1487cbbf940af0ed35270 (patch) | |
| tree | 88e0fdab489c480418b993c2649fbf8937d19fdf /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
| parent | 6aa4fc389e542fce1b0d527f19c36d4d96fcd6ec (diff) | |
| download | bcm5719-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.cpp | 2 |
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! } |

