[PATCH] D43965: [CodeGen] Force the backend to follow clang's EmulatedTLS flag
Martin Storsjö via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 1 12:57:00 PST 2018
mstorsjo created this revision.
mstorsjo added reviewers: chh, jyknight.
Since LLVM r326341, this is needed for the backend to actually respect the EmulatedTLS flag that is set, otherwise it just uses the target default flag instead.
Repository:
rC Clang
https://reviews.llvm.org/D43965
Files:
lib/CodeGen/BackendUtil.cpp
Index: lib/CodeGen/BackendUtil.cpp
===================================================================
--- lib/CodeGen/BackendUtil.cpp
+++ lib/CodeGen/BackendUtil.cpp
@@ -432,6 +432,7 @@
Options.FunctionSections = CodeGenOpts.FunctionSections;
Options.DataSections = CodeGenOpts.DataSections;
Options.UniqueSectionNames = CodeGenOpts.UniqueSectionNames;
+ Options.ExplicitEmulatedTLS = true;
Options.EmulatedTLS = CodeGenOpts.EmulatedTLS;
Options.DebuggerTuning = CodeGenOpts.getDebuggerTuning();
Options.EmitStackSizeSection = CodeGenOpts.StackSizeSection;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43965.136590.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180301/9c01d5b0/attachment.bin>
More information about the cfe-commits
mailing list