diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-06-20 07:03:37 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-06-20 07:03:37 +0000 |
commit | 8ab6c24076444fc6bda9a28c1100ba106ddffaa6 (patch) | |
tree | 719761d40dcef3eb3cc1c586217eefc28528a629 /lib/Driver/Tools.cpp | |
parent | 13691bba2423e404b3efc0dfc5206d04ef33dcc6 (diff) |
Revert "Provide a -no-pedantic to cancel out -pedantic." This needs to be designed
a bit further. We may wish to just have -Wno flags to silence warnings, and not have a -no-pedantic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index aff9688818..e152b93121 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -2034,8 +2034,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, } Args.AddAllArgs(CmdArgs, options::OPT_W_Group); - if (Args.hasFlag(options::OPT_pedantic, options::OPT_no_pedantic, false)) - CmdArgs.push_back("-pedantic"); + Args.AddLastArg(CmdArgs, options::OPT_pedantic); Args.AddLastArg(CmdArgs, options::OPT_pedantic_errors); Args.AddLastArg(CmdArgs, options::OPT_w); |