[Driver] Pass -f[no-]emulated-tls and set up ExplicitEmulatedTLS
authorChih-Hung Hsieh <chh@google.com>
Thu, 1 Mar 2018 22:26:19 +0000 (22:26 +0000)
committerChih-Hung Hsieh <chh@google.com>
Thu, 1 Mar 2018 22:26:19 +0000 (22:26 +0000)
commit549e9c4598a0e7a27e6bce0514e2f3d089dc2217
treede85d6d015e27d670995b39c8c4cf95ea2ff32a7
parenta5a02bcb34ebd8827c15ab8e1dee7b785add81a1
[Driver] Pass -f[no-]emulated-tls and set up ExplicitEmulatedTLS

Since LLVM r326341, default EmulatedTLS mode is decided in backend
according to target triple. Any front-end should pass -f[no]-emulated-tls
to backend and set up ExplicitEmulatedTLS only when the flags are used.

Differential Revision: https://reviews.llvm.org/D43965

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326499 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/BackendUtil.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
test/Driver/emulated-tls.cpp