summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-04-24 17:56:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-04-24 17:56:39 +0000
commitdb059592fe0aeb6580bbad33203dff7cdb4c010c (patch)
tree5a9602c11a3b8bb4955188b119a0b2a3c99df581
parent7afe4245e27d0b44c7984d853c6d50f36e42ba04 (diff)
downloadbcm5719-llvm-db059592fe0aeb6580bbad33203dff7cdb4c010c.tar.gz
bcm5719-llvm-db059592fe0aeb6580bbad33203dff7cdb4c010c.zip
Simplify.
llvm-svn: 102254
-rw-r--r--clang/lib/Driver/Tools.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 4653551a469..2e8db0062db 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -1217,12 +1217,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// -fgnu-keywords default varies depending on language; only pass if
// specified.
if (Arg *A = Args.getLastArg(options::OPT_fgnu_keywords,
- options::OPT_fno_gnu_keywords)) {
- if (A->getOption().matches(options::OPT_fgnu_keywords))
- CmdArgs.push_back("-fgnu-keywords");
- else
- CmdArgs.push_back("-fno-gnu-keywords");
- }
+ options::OPT_fno_gnu_keywords))
+ A->render(Args, CmdArgs);
// -fnext-runtime is default.
if (!Args.hasFlag(options::OPT_fnext_runtime, options::OPT_fgnu_runtime,
OpenPOWER on IntegriCloud