diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2016-05-26 04:56:05 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-05-26 04:56:05 +0000 |
commit | 3bfedcffe09c393b1a94f4f58e2d5717122dd421 (patch) | |
tree | f5b77337c929f8d24e1f52ad708af87fcc76bcb2 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 91e19a3de4d74d899f3ffc77aace35d4df561373 (diff) | |
download | llvm-3bfedcffe09c393b1a94f4f58e2d5717122dd421.zip llvm-3bfedcffe09c393b1a94f4f58e2d5717122dd421.tar.gz llvm-3bfedcffe09c393b1a94f4f58e2d5717122dd421.tar.bz2 |
[OPENMP] Set '_OPENMP' macro to '201511' value to reflect support for
OpenMP 4.5.
According to OpenMP 4.5 the _OPENMP macro name is defined to have the decimal value yyyymm where yyyy and mm are the year and month designations of the version of the OpenMP API that the implementation supports. Clang supports OpenMP 4.5 so updated value of _OPENMP macro to 201511.
llvm-svn: 270822
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index f8b407b..9259b12 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -928,7 +928,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI, // macro name is defined to have the decimal value yyyymm where // yyyy and mm are the year and the month designations of the // version of the OpenMP API that the implementation support. - Builder.defineMacro("_OPENMP", "201307"); + Builder.defineMacro("_OPENMP", "201511"); } // CUDA device path compilaton |