hanchenye-llvm-project/llvm/tools/lto
Eli Bendersky f0f210052f 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.

llvm-svn: 201699
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
LTODisassembler.cpp libLTO: Add a utility method to initialize the disassemblers. 2012-11-24 16:59:10 +00:00
Makefile 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