Skip to content
Snippets Groups Projects
Commit edcfc411 authored by Nate Begeman's avatar Nate Begeman
Browse files

Allow clang to pass -x cl through to compiler driver.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92686 91177308-0d34-0410-b5e6-96231b3b80d8
parent 7af4ec74
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
// C family source language (with and without preprocessing). // C family source language (with and without preprocessing).
TYPE("cpp-output", PP_C, INVALID, "i", "u") TYPE("cpp-output", PP_C, INVALID, "i", "u")
TYPE("c", C, PP_C, 0, "u") TYPE("c", C, PP_C, 0, "u")
TYPE("cl", CL, PP_C, 0, "u")
TYPE("objective-c-cpp-output", PP_ObjC, INVALID, "mi", "u") TYPE("objective-c-cpp-output", PP_ObjC, INVALID, "mi", "u")
TYPE("objective-c", ObjC, PP_ObjC, 0, "u") TYPE("objective-c", ObjC, PP_ObjC, 0, "u")
TYPE("c++-cpp-output", PP_CXX, INVALID, "ii", "u") TYPE("c++-cpp-output", PP_CXX, INVALID, "ii", "u")
......
...@@ -77,6 +77,7 @@ bool types::isAcceptedByClang(ID Id) { ...@@ -77,6 +77,7 @@ bool types::isAcceptedByClang(ID Id) {
case TY_Asm: case TY_Asm:
case TY_C: case TY_PP_C: case TY_C: case TY_PP_C:
case TY_CL:
case TY_ObjC: case TY_PP_ObjC: case TY_ObjC: case TY_PP_ObjC:
case TY_CXX: case TY_PP_CXX: case TY_CXX: case TY_PP_CXX:
case TY_ObjCXX: case TY_PP_ObjCXX: case TY_ObjCXX: case TY_PP_ObjCXX:
...@@ -133,6 +134,7 @@ types::ID types::lookupTypeForExtension(const char *Ext) { ...@@ -133,6 +134,7 @@ types::ID types::lookupTypeForExtension(const char *Ext) {
.Case("mm", TY_ObjCXX) .Case("mm", TY_ObjCXX)
.Case("cc", TY_CXX) .Case("cc", TY_CXX)
.Case("CC", TY_CXX) .Case("CC", TY_CXX)
.Case("cl", TY_CL)
.Case("cp", TY_CXX) .Case("cp", TY_CXX)
.Case("hh", TY_CXXHeader) .Case("hh", TY_CXXHeader)
.Case("hpp", TY_CXXHeader) .Case("hpp", TY_CXXHeader)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment