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/CodeGen/BackendUtil.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/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 90da637ab80..05b3ac4305a 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -542,6 +542,7 @@ TargetMachine *EmitAssemblyHelper::CreateTargetMachine(bool MustCreateTM) { Options.FunctionSections = CodeGenOpts.FunctionSections; Options.DataSections = CodeGenOpts.DataSections; Options.UniqueSectionNames = CodeGenOpts.UniqueSectionNames; + Options.EmulatedTLS = CodeGenOpts.EmulatedTLS; Options.MCOptions.MCRelaxAll = CodeGenOpts.RelaxAll; Options.MCOptions.MCSaveTempLabels = CodeGenOpts.SaveTempLabels; |