summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2014-02-19 17:09:35 +0000
committerEli Bendersky <eliben@google.com>2014-02-19 17:09:35 +0000
commitf0f210052f8ea8c9a126edeec46eaffbaa735983 (patch)
tree7334e0d8e892435849af4cc77f6f8d763c3fa948 /llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp
parentbd1eb0db1f17c4b6c3abc0f5940266f3911f0623 (diff)
downloadbcm5719-llvm-f0f210052f8ea8c9a126edeec46eaffbaa735983.tar.gz
bcm5719-llvm-f0f210052f8ea8c9a126edeec46eaffbaa735983.zip
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
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreTargetObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud