Move -fnext-runtime defaulting to driver (and change clang-cc default to

-fnext-runtime), instead of using getDefaultLangOptions.

llvm-svn: 89058
This commit is contained in:
Daniel Dunbar
2009-11-17 07:07:28 +00:00
parent 0730e4f7e0
commit 4656c53e12
46 changed files with 58 additions and 65 deletions

View File

@@ -396,7 +396,8 @@ static void LangOptsToArgs(const LangOptions &Opts,
Res.push_back(Opts.Exceptions ? "1" : "0");
Res.push_back("-frtti");
Res.push_back(Opts.Rtti ? "1" : "0");
Res.push_back(Opts.NeXTRuntime ? "-fnext-runtime" : "-fgnu-runtime");
if (!Opts.NeXTRuntime)
Res.push_back("-fgnu-runtime");
if (Opts.Freestanding)
Res.push_back("-ffreestanding");
if (Opts.NoBuiltin)