[LTO] Add options to llvm-lto to select output format and dump merged module
authorTobias Edler von Koch <tobias@codeaurora.org>
Fri, 20 Nov 2015 00:13:05 +0000 (00:13 +0000)
committerTobias Edler von Koch <tobias@codeaurora.org>
Fri, 20 Nov 2015 00:13:05 +0000 (00:13 +0000)
commitcbf870d3b1118dfe60236acbcc31878e14df72d6
treeb7e564483a6d81126891d907dd2478d5bc27930d
parent5b01c014963f0b4f79aeda48eebad3cc587dba13
[LTO] Add options to llvm-lto to select output format and dump merged module

This introduces two new options:
- "llvm-lto -save-merged-module -o outfile" dumps the LTO Module to
  outfile.merged.bc prior to CodeGen and after LTO optimizations have been run.
- "llvm-lto -filetype=asm -o outfile" makes llvm-lto emit assembly instead of
  object code in outfile.

Both are intended for use in lit tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253624 91177308-0d34-0410-b5e6-96231b3b80d8
test/LTO/X86/llvm-lto-output.ll [new file with mode: 0644]
tools/llvm-lto/llvm-lto.cpp