diff options
author | Chih-Hung Hsieh <chh@google.com> | 2015-07-28 16:27:56 +0000 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2015-07-28 16:27:56 +0000 |
commit | 2c656c9417d5f384815c382130813addd87f2551 (patch) | |
tree | 8396848187fa9e47b849a4e79e198067992406ca /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 9938310ab3357137ec5629dad3ed2ace12500764 (diff) | |
download | bcm5719-llvm-2c656c9417d5f384815c382130813addd87f2551.tar.gz bcm5719-llvm-2c656c9417d5f384815c382130813addd87f2551.zip |
Add -femulated-tls flag to select the emulated TLS model.
This will be used for old targets like Android that do not
support ELF TLS models.
Differential Revision: http://reviews.llvm.org/D10524
llvm-svn: 243441
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index e4cfba3b544..2fdbcb9ac43 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -593,6 +593,9 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, } } + Opts.EmulatedTLS = + Args.hasFlag(OPT_femulated_tls, OPT_fno_emulated_tls, false); + if (Arg *A = Args.getLastArg(OPT_ftlsmodel_EQ)) { StringRef Name = A->getValue(); unsigned Model = llvm::StringSwitch<unsigned>(Name) |