diff options
author | Samuel Antao <sfantao@us.ibm.com> | 2015-07-13 22:54:53 +0000 |
---|---|---|
committer | Samuel Antao <sfantao@us.ibm.com> | 2015-07-13 22:54:53 +0000 |
commit | fcf87ff162da88cda1d2db3cbbfed4efa35f4f9c (patch) | |
tree | a5d0d531dbb0f4fc6b364866ca1cbc48bf4da89d /lib/Frontend/CompilerInvocation.cpp | |
parent | c5920d028947df0d271a93ff32af6390c4a18b5a (diff) | |
download | clang-fcf87ff162da88cda1d2db3cbbfed4efa35f4f9c.tar.gz |
[OpenMP] Add TLS-based implementation for threadprivate directive.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242080 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index baee119059..6f13faf573 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1651,6 +1651,8 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, // Check if -fopenmp is specified. Opts.OpenMP = Args.hasArg(options::OPT_fopenmp); + Opts.OpenMPUseTLS = + Opts.OpenMP && !Args.hasArg(options::OPT_fnoopenmp_use_tls); // Record whether the __DEPRECATED define was requested. Opts.Deprecated = Args.hasFlag(OPT_fdeprecated_macro, |