Fix GCMetadaPrinter::finishAssembly not executed, patch by Yiannis Tsiouris.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 19 Feb 2013 16:51:44 +0000 (16:51 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 19 Feb 2013 16:51:44 +0000 (16:51 +0000)
commitb3aa2b8497c58a7fabf1487cbbf940af0ed35270
tree88e0fdab489c480418b993c2649fbf8937d19fdf
parent6aa4fc389e542fce1b0d527f19c36d4d96fcd6ec
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
llvm/lib/CodeGen/GCMetadata.cpp
llvm/lib/CodeGen/LLVMTargetMachine.cpp
llvm/test/CodeGen/X86/GC/ocaml-gc.ll [new file with mode: 0644]