summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-15 06:45:29 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-15 06:45:29 +0000
commit1517128912cfe5c9e7635424f683f9a6695fcfe0 (patch)
tree3333ea2c3bdc3ec3b2b26efd54afcd0cbdd3958b /clang/lib/Frontend/CompilerInvocation.cpp
parentdaa46eb7361fe3d04d377c3713ce7fe68e0f3113 (diff)
downloadbcm5719-llvm-1517128912cfe5c9e7635424f683f9a6695fcfe0.tar.gz
bcm5719-llvm-1517128912cfe5c9e7635424f683f9a6695fcfe0.zip
Add -fopenmp -cc1 option and wire it up to define _OPENMP, from Alexey Bataev!
llvm-svn: 172509
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 0f00c07ca93..20def5e480c 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1241,6 +1241,9 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
Opts.ApplePragmaPack = Args.hasArg(OPT_fapple_pragma_pack);
Opts.CurrentModule = Args.getLastArgValue(OPT_fmodule_name);
+ // Check if -fopenmp is specified.
+ Opts.OpenMP = Args.hasArg(OPT_fopenmp);
+
// Record whether the __DEPRECATED define was requested.
Opts.Deprecated = Args.hasFlag(OPT_fdeprecated_macro,
OPT_fno_deprecated_macro,
OpenPOWER on IntegriCloud