diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-06-02 16:13:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-06-02 16:13:27 +0000 |
commit | fb3f4aad0436a9c40e9130598162150890c405b5 (patch) | |
tree | 1cb325b0d90dafe13a495af87e93674d06bdbe52 /lib/Driver/Tools.cpp | |
parent | 3f828d1710df819c1dd84c4782166b10f8d18b56 (diff) |
Implement -fgnu89-inline. Fixes PR10041.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index eff5942599..fbc5109207 100644 --- a/lib/Driver/Tools.cpp +++ b/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 = |