diff options
author | Bob Haarman <llvm@inglorion.net> | 2017-02-02 23:49:16 +0000 |
---|---|---|
committer | Bob Haarman <llvm@inglorion.net> | 2017-02-02 23:49:16 +0000 |
commit | 35989d6be572d297683f790315b1bf35a4a926b6 (patch) | |
tree | 8ae5517a772c039bec390ff37377fa63fbade02c /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 803b141f32fc8b09c259c97d31e77e5f5efc58af (diff) | |
download | llvm-35989d6be572d297683f790315b1bf35a4a926b6.zip llvm-35989d6be572d297683f790315b1bf35a4a926b6.tar.gz llvm-35989d6be572d297683f790315b1bf35a4a926b6.tar.bz2 |
add the ability to call InitTargetOptionsFromCodeGenFlags from multiple objects
Summary: llvm/CodeGen/CommandFlags.h a utility function InitTargetOptionsFromCodeGenFlags which is used to set target options from flags based on the command line. The command line flags are stored in globals defined in the same file, and including the file in multiple places causes the globals to be defined multiple times, leading to linker errors. This change adds a single place in lld where these globals are defined and exports only the utility function. This makes it possible to call InitTargetOptionsFromCodeGenFlags from multiple places in lld, which a follow-up change will do.
Reviewers: davide, ruiu
Reviewed By: davide, ruiu
Subscribers: mgorny
Differential Revision: https://reviews.llvm.org/D29058
llvm-svn: 293965
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions