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 | f8b5012dfb5210d616d838a558a5dccd7f8f6aae (patch) | |
tree | fa1748382ae9c4e1ba45546c3504fa93d73b9a55 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 6c40c5e0311539fcfea9bd5ef6e2330d5c4f2199 (diff) | |
download | bcm5719-llvm-f8b5012dfb5210d616d838a558a5dccd7f8f6aae.tar.gz bcm5719-llvm-f8b5012dfb5210d616d838a558a5dccd7f8f6aae.zip |
[OpenMP] Add TLS-based implementation for threadprivate directive.
llvm-svn: 242080
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index baee1190595..6f13faf573b 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/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, |