summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-06-02 16:13:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-06-02 16:13:27 +0000
commitfb2af643e49a29fc99ebd728dca19cfc39fe6ff5 (patch)
tree3d33c45e6553090b53eb972e875a210071dae942 /clang/lib/Driver/Tools.cpp
parenta87e836083fff729e060332c06d4715abe79de12 (diff)
downloadbcm5719-llvm-fb2af643e49a29fc99ebd728dca19cfc39fe6ff5.tar.gz
bcm5719-llvm-fb2af643e49a29fc99ebd728dca19cfc39fe6ff5.zip
Implement -fgnu89-inline. Fixes PR10041.
llvm-svn: 132460
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index eff59425990..fbc5109207c 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -1712,6 +1712,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
options::OPT_fno_gnu_keywords))
A->render(Args, CmdArgs);
+ if (Arg *A = Args.getLastArg(options::OPT_fgnu89_inline))
+ CmdArgs.push_back("-fgnu89-inline");
+
// -fnext-runtime defaults to on Darwin and when rewriting Objective-C, and is
// -the -cc1 default.
bool NeXTRuntimeIsDefault =
OpenPOWER on IntegriCloud