llvm-6502/tools/lto
Eli Bendersky cf42174647 Refactor TargetOptions initialization into a single place.
The same code (~20 lines) for initializing a TargetOptions object from CodeGen
cmdline flags is duplicated 4 times in 4 different tools. This patch moves it
into a utility function.

Since the CodeGen/CommandFlags.h file defines cl::opt flags in a header, it's
a bit of a touchy situation because we should only link them into tools. So this
patch puts the init function in the header.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201699 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-19 17:09:35 +00:00
..
CMakeLists.txt Revert r200560, "LTO itself hasn't depended on MCDisassembler any more." 2014-01-31 17:57:50 +00:00
lto.cpp Refactor TargetOptions initialization into a single place. 2014-02-19 17:09:35 +00:00
lto.exports LTO API: add lto_module_create_from_memory_with_path. 2014-02-10 23:26:14 +00:00
LTODisassembler.cpp
Makefile Revert r200560, "LTO itself hasn't depended on MCDisassembler any more." 2014-01-31 17:57:50 +00:00