aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/FrontendOptions.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-08-26 00:14:38 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-08-26 00:14:38 +0000
commitbbcc9f0462c1b56e0bd6bdd830bd0250ec8ad2d4 (patch)
tree707cccea7fa2a04369d734745e2af81e860a1fde /clang/lib/Frontend/FrontendOptions.cpp
parent7c5ae7cbc60f1196bd4cde77c68f4b6995596215 (diff)
downloadllvm-bbcc9f0462c1b56e0bd6bdd830bd0250ec8ad2d4.zip
llvm-bbcc9f0462c1b56e0bd6bdd830bd0250ec8ad2d4.tar.gz
llvm-bbcc9f0462c1b56e0bd6bdd830bd0250ec8ad2d4.tar.bz2
C++ Modules TS: add frontend support for building pcm files from module
interface files. At the moment, all declarations (and no macros) are exported, and 'export' declarations are not supported yet. llvm-svn: 279794
Diffstat (limited to 'clang/lib/Frontend/FrontendOptions.cpp')
-rw-r--r--clang/lib/Frontend/FrontendOptions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/FrontendOptions.cpp b/clang/lib/Frontend/FrontendOptions.cpp
index 9ede674..6a82084 100644
--- a/clang/lib/Frontend/FrontendOptions.cpp
+++ b/clang/lib/Frontend/FrontendOptions.cpp
@@ -25,6 +25,8 @@ InputKind FrontendOptions::getInputKindForExtension(StringRef Extension) {
.Case("mii", IK_PreprocessedObjCXX)
.Cases("C", "cc", "cp", IK_CXX)
.Cases("cpp", "CPP", "c++", "cxx", "hpp", IK_CXX)
+ .Case("cppm", IK_CXX)
+ .Case("iim", IK_PreprocessedCXX)
.Case("cl", IK_OpenCL)
.Case("cu", IK_CUDA)
.Cases("ll", "bc", IK_LLVM_IR)