зеркало из https://github.com/microsoft/clang-1.git
OpenCL: add driver/frontend support for precompiled headers
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
33ab0da4b5
Коммит
ae57eadbc1
|
@ -55,6 +55,7 @@ TYPE("objective-c++", ObjCXX, PP_ObjCXX, 0, "u")
|
|||
// C family input files to precompile.
|
||||
TYPE("c-header-cpp-output", PP_CHeader, INVALID, "i", "p")
|
||||
TYPE("c-header", CHeader, PP_CHeader, 0, "pu")
|
||||
TYPE("cl-header", CLHeader, PP_CHeader, 0, "pu")
|
||||
TYPE("objective-c-header-cpp-output", PP_ObjCHeader, INVALID, "mi", "p")
|
||||
TYPE("objective-c-header", ObjCHeader, PP_ObjCHeader, 0, "pu")
|
||||
TYPE("c++-header-cpp-output", PP_CXXHeader, INVALID, "ii", "p")
|
||||
|
|
|
@ -83,6 +83,7 @@ bool types::isAcceptedByClang(ID Id) {
|
|||
case TY_CXX: case TY_PP_CXX:
|
||||
case TY_ObjCXX: case TY_PP_ObjCXX: case TY_PP_ObjCXX_Alias:
|
||||
case TY_CHeader: case TY_PP_CHeader:
|
||||
case TY_CLHeader:
|
||||
case TY_ObjCHeader: case TY_PP_ObjCHeader:
|
||||
case TY_CXXHeader: case TY_PP_CXXHeader:
|
||||
case TY_ObjCXXHeader: case TY_PP_ObjCXXHeader:
|
||||
|
|
|
@ -1340,6 +1340,7 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
|||
.Case("objective-c++-cpp-output", IK_PreprocessedObjCXX)
|
||||
.Case("objc++-cpp-output", IK_PreprocessedObjCXX)
|
||||
.Case("c-header", IK_C)
|
||||
.Case("cl-header", IK_OpenCL)
|
||||
.Case("objective-c-header", IK_ObjC)
|
||||
.Case("c++-header", IK_CXX)
|
||||
.Case("objective-c++-header", IK_ObjCXX)
|
||||
|
|
Загрузка…
Ссылка в новой задаче