Refactor the Internalize stage of libLTO in a separate file (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 12 Apr 2016 06:34:10 +0000 (06:34 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 12 Apr 2016 06:34:10 +0000 (06:34 +0000)
commitf59f2bb1b529afc2dc8f13f65f06708cad939ff4
tree843c38e794d4693113fbc818b848247b6a5362c2
parentf02f4997f92955e721e50f66a1ba79ed02c3e9d5
Refactor the Internalize stage of libLTO in a separate file (NFC)

This is intended to be shared by the ThinLTOCodeGenerator.

Note that there is a change in the way the verifier is run, previously
it was ran as a Pass on the merged module during internalization.
While now the verifier is called explicitely on the merged module
outside of the internalize "pass pipeline".

What remains strange in the API is the fact that `DisableVerify` in
the API does not disable this initial verifier.

Differential Revision: http://reviews.llvm.org/D19000

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266047
llvm/include/llvm/LTO/LTOCodeGenerator.h
llvm/lib/LTO/CMakeLists.txt
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/lib/LTO/LTOInternalize.cpp [new file with mode: 0644]
llvm/lib/LTO/LTOInternalize.h [new file with mode: 0644]
llvm/test/LTO/X86/disable-verify.ll