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)
commit063337309e71683fc57c049c10d03d4f8a2ce356
tree685e367d08617a8c84728e4cb144d4d64056b31c
parent26a5c4dd3176a7e3a7cc9601d32ccad8f41d3104
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175528 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GCMetadata.cpp
lib/CodeGen/LLVMTargetMachine.cpp
test/CodeGen/X86/GC/ocaml-gc.ll [new file with mode: 0644]