llvm-6502/tools
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
..
bugpoint Do not reference llvm-gcc from bugpoint 2014-01-27 13:44:58 +00:00
bugpoint-passes Set LLVM_EXPORTED_SYMBOL_FILE in CMakeLists whose corresponding Makefiles do so. 2013-12-29 23:06:49 +00:00
gold Improve the declaration when LDPO_PIE is not available. 2014-02-11 17:30:18 +00:00
llc Refactor TargetOptions initialization into a single place. 2014-02-19 17:09:35 +00:00
lli [CMake] Put lli-child-target into the Folder "Misc". 2014-01-28 09:43:41 +00:00
llvm-ar Change the begin and end methods in ObjectFile to match the style guide. 2014-02-10 20:24:04 +00:00
llvm-as [PM] Make the verifier work independently of any pass manager. 2014-01-19 02:22:18 +00:00
llvm-bcanalyzer [cleanup] Move the Dominators.h and Verifier.h headers into the IR 2014-01-13 09:26:24 +00:00
llvm-c-test Use -std=gnu99 in tools/llvm-c-test/CMakeLists.txt 2014-01-08 11:48:19 +00:00
llvm-config llvm-config: Fix typo in help message introduced with r197664. 2013-12-25 02:24:32 +00:00
llvm-cov llvm-cov: Support gcov's extermely lenient treatment of -o 2014-02-18 09:19:48 +00:00
llvm-diff [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
llvm-dis Return an error_code from materializeAllPermanently. 2014-01-14 23:51:27 +00:00
llvm-dwarfdump Change createObjectFile to return an ErrorOr. 2014-01-22 00:14:49 +00:00
llvm-extract [PM] Wire up support for writing bitcode with new PM. 2014-01-13 07:38:24 +00:00
llvm-jitlistener Manually update the dependencies in the Makefiles. It turns out that all 2013-03-26 03:45:47 +00:00
llvm-link [cleanup] Move the Dominators.h and Verifier.h headers into the IR 2014-01-13 09:26:24 +00:00
llvm-lto Refactor TargetOptions initialization into a single place. 2014-02-19 17:09:35 +00:00
llvm-mc Remove support for not using .loc directives. 2014-02-05 18:00:21 +00:00
llvm-mcmarkup MC: Simple example parser for MC assembly markup. 2012-10-31 23:24:13 +00:00
llvm-nm Change the begin and end methods in ObjectFile to match the style guide. 2014-02-10 20:24:04 +00:00
llvm-objdump llvm-objdump/COFF: Print load configuration table. 2014-02-19 03:53:11 +00:00
llvm-profdata PGO: llvm-profdata: tool for merging profiles 2014-02-17 23:22:49 +00:00
llvm-readobj Change the begin and end methods in ObjectFile to match the style guide. 2014-02-10 20:24:04 +00:00
llvm-rtdyld Simplify the handling of iterators in ObjectFile. 2014-01-30 02:49:50 +00:00
llvm-shlib Strip dead code when linking by default with BFD ld (linux, ...) and ld64 (os x). 2013-12-27 22:38:59 +00:00
llvm-size Change the begin and end methods in ObjectFile to match the style guide. 2014-02-10 20:24:04 +00:00
llvm-stress [cleanup] Move the Dominators.h and Verifier.h headers into the IR 2014-01-13 09:26:24 +00:00
llvm-symbolizer Change the begin and end methods in ObjectFile to match the style guide. 2014-02-10 20:24:04 +00:00
lto Refactor TargetOptions initialization into a single place. 2014-02-19 17:09:35 +00:00
macho-dump Change the begin and end methods in ObjectFile to match the style guide. 2014-02-10 20:24:04 +00:00
msbuild MSBuild integration: get the LibraryPath right (PR18707) 2014-02-13 22:01:35 +00:00
obj2yaml Change the begin and end methods in ObjectFile to match the style guide. 2014-02-10 20:24:04 +00:00
opt Refactor TargetOptions initialization into a single place. 2014-02-19 17:09:35 +00:00
yaml2obj llvm/tools: Prune redundant target_link_libraries. 2014-01-31 17:40:06 +00:00
CMakeLists.txt PGO: llvm-profdata: tool for merging profiles 2014-02-17 23:22:49 +00:00
LLVMBuild.txt PGO: llvm-profdata: tool for merging profiles 2014-02-17 23:22:49 +00:00
Makefile PGO: llvm-profdata: tool for merging profiles 2014-02-17 23:22:49 +00:00