diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-03-06 05:43:53 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-03-06 05:43:53 +0000 |
commit | 186b28a8cf16e8ab92d88bff287773e508b7377c (patch) | |
tree | 4f639b6e6597172d225f039b3120a51c66db4dd0 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 90097491ed557b6140dab4d5989beae66d0a9ad1 (diff) | |
download | bcm5719-llvm-186b28a8cf16e8ab92d88bff287773e508b7377c.tar.gz bcm5719-llvm-186b28a8cf16e8ab92d88bff287773e508b7377c.zip |
[OPENMP] Added option -fopenmp=libiomp5|libgomp
llvm-svn: 203081
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index f8cb9388661..d28af7c469f 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1431,8 +1431,12 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.setMSPointerToMemberRepresentationMethod(InheritanceModel); } - // Check if -fopenmp is specified. - Opts.OpenMP = Args.hasArg(OPT_fopenmp); + // Check if -fopenmp= is specified. + if (const Arg *A = Args.getLastArg(options::OPT_fopenmp_EQ)) { + Opts.OpenMP = llvm::StringSwitch<bool>(A->getValue()) + .Case("libiomp5", true) + .Default(false); + } // Record whether the __DEPRECATED define was requested. Opts.Deprecated = Args.hasFlag(OPT_fdeprecated_macro, |