Go to file
Bob Haarman 35989d6be5 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
2017-02-02 23:49:16 +00:00
clang Revert "[Driver] Updated for Visual Studio 2017" 2017-02-02 19:36:22 +00:00
clang-tools-extra [change-namespace] trying to fix build bot failure caused by r293909. 2017-02-02 19:46:12 +00:00
compiler-rt [sancov] Define delimiters for sanitizer coverage's binary section on Windows. 2017-02-02 23:02:15 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Add logb builtin 2017-01-18 03:14:10 +00:00
libcxx Avoid implementation defined behavior in a test. 2017-02-02 19:44:11 +00:00
libcxxabi Add support for demangling C++11 thread_local variables. In clang, the grammar for mangling for these names are "<special-name> ::= TW <object name>" for wrapper variables or "<special-name> ::= TH <object name>" for initialization variables. 2017-01-31 15:18:56 +00:00
libunwind Revert "DWARF: convert error logs to _LIBUNWIND_LOG" 2017-01-27 02:26:52 +00:00
lld add the ability to call InitTargetOptionsFromCodeGenFlags from multiple objects 2017-02-02 23:49:16 +00:00
lldb Fix mac build breakage due to StringStream move 2017-02-02 22:38:12 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm llvm-readobj: fix next note entry calculation and print unknown note types 2017-02-02 23:44:49 +00:00
openmp [OpenMP] Redefined macro warning in libomptarget 2017-02-01 08:33:38 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly A new algorithm for identification of a SCoP statement that implement a matrix 2017-02-02 14:23:14 +00:00