diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-10-29 01:53:44 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-10-29 01:53:44 +0000 |
commit | 607d7f6d8f21066cc48bbe2c51e6ca412a00943f (patch) | |
tree | e89a199c19117d77de3700aa9d528d3ccb424821 /lib/Driver/Tools.cpp | |
parent | bea5a84ea65f67a55b62df726ed08565d297b768 (diff) |
Reject -I- in driver instead of clang-cc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 32ce80d514..feb01cf063 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -204,6 +204,10 @@ void Clang::AddPreprocessingOptions(const Driver &D, // those options. :( Args.AddAllArgValues(CmdArgs, options::OPT_Wp_COMMA, options::OPT_Xpreprocessor); + + // -I- is a deprecated GCC feature, reject it. + if (Arg *A = Args.getLastArg(options::OPT_I_)) + D.Diag(clang::diag::err_drv_I_dash_not_supported) << A->getAsString(Args); } /// getARMTargetCPU - Get the (LLVM) name of the ARM cpu we are targetting. |