clang-cl: Use the .obj file extension also in LTO mode
llvm-svn: 283257
This commit is contained in:
parent
2b0eea4a3b
commit
26228e3010
|
@ -53,12 +53,19 @@ types::ID types::getPrecompiledType(ID Id) {
|
|||
}
|
||||
|
||||
const char *types::getTypeTempSuffix(ID Id, bool CLMode) {
|
||||
if (Id == TY_Object && CLMode)
|
||||
return "obj";
|
||||
if (Id == TY_Image && CLMode)
|
||||
return "exe";
|
||||
if (Id == TY_PP_Asm && CLMode)
|
||||
return "asm";
|
||||
if (CLMode) {
|
||||
switch (Id) {
|
||||
case TY_Object:
|
||||
case TY_LTO_BC:
|
||||
return "obj";
|
||||
case TY_Image:
|
||||
return "exe";
|
||||
case TY_PP_Asm:
|
||||
return "asm";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return getInfo(Id).TempSuffix;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// command-line option, e.g. on Mac where %s is commonly under /Users.
|
||||
|
||||
// RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULT %s
|
||||
// RUN: %clang_cl /c -flto -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULT %s
|
||||
// DEFAULT: "-o" "cl-outputs.obj"
|
||||
|
||||
// RUN: %clang_cl /Fo -### -- %s 2>&1 | FileCheck -check-prefix=FoEMPTY %s
|
||||
|
|
Loading…
Reference in New Issue