Forward -save-temps to llvm-gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90214 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mikhail Glushenkov 2009-12-01 06:51:30 +00:00
parent 156cf873e5
commit 97955005b3
2 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,7 @@ class llvm_gcc_based <string cmd_prefix, string in_lang, string E_ext> : Tool<
(and (switch_on "emit-llvm"), (switch_on "c")), (stop_compilation),
(switch_on "fsyntax-only"), (stop_compilation),
(not_empty "include"), (forward "include"),
(not_empty "save-temps"), (append_cmd "-save-temps"),
(not_empty "I"), (forward "I"),
(not_empty "F"), (forward "F"),
(not_empty "D"), (forward "D"),

View File

@ -1155,6 +1155,9 @@ public:
if (OptName == "o") {
O << Neg << "OutputFilename.empty()";
}
else if (OptName == "save-temps") {
O << Neg << "(SaveTemps == SaveTempsEnum::Unset)";
}
else {
const OptionDescription& OptDesc = OptDescs_.FindListOrParameter(OptName);
O << Neg << OptDesc.GenVariableName() << ".empty()";