summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2015-07-28 16:27:56 +0000
committerChih-Hung Hsieh <chh@google.com>2015-07-28 16:27:56 +0000
commit2c656c9417d5f384815c382130813addd87f2551 (patch)
tree8396848187fa9e47b849a4e79e198067992406ca /clang/lib/CodeGen/BackendUtil.cpp
parent9938310ab3357137ec5629dad3ed2ace12500764 (diff)
downloadbcm5719-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.cpp1
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;
OpenPOWER on IntegriCloud