From 95a0da7b263777e6f97e5a08b6eb893681a234ba Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 13 May 2009 19:05:04 +0000 Subject: [PATCH] Driver: Emit an unsupported error on -iframework. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71698 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/Options.def | 1 + lib/Driver/Tools.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/clang/Driver/Options.def b/include/clang/Driver/Options.def index 31b32f8ebf..a0586f9d8f 100644 --- a/include/clang/Driver/Options.def +++ b/include/clang/Driver/Options.def @@ -462,6 +462,7 @@ OPTION("-g", g_Flag, Flag, g_Group, INVALID, "", 0, 0, 0) OPTION("-g", g_Joined, Joined, g_Group, INVALID, "", 0, 0, 0) OPTION("-headerpad_max_install_names", headerpad__max__install__names, Joined, INVALID, INVALID, "", 0, 0, 0) OPTION("-idirafter", idirafter, JoinedOrSeparate, clang_i_Group, INVALID, "", 0, 0, 0) +OPTION("-iframework", iframework, JoinedOrSeparate, clang_i_Group, INVALID, "", 0, 0, 0) OPTION("-imacros", imacros, JoinedOrSeparate, clang_i_Group, INVALID, "", 0, 0, 0) OPTION("-image_base", image__base, Separate, INVALID, INVALID, "", 0, 0, 0) OPTION("-include", include, JoinedOrSeparate, clang_i_Group, INVALID, "", 0, 0, 0) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index ad4db49e9b..0f55f8e14c 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -391,7 +391,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, Arg *Unsupported; if ((Unsupported = Args.getLastArg(options::OPT_MG)) || - (Unsupported = Args.getLastArg(options::OPT_MQ))) + (Unsupported = Args.getLastArg(options::OPT_MQ)) || + (Unsupported = Args.getLastArg(options::OPT_iframework))) D.Diag(clang::diag::err_drv_unsupported_opt) << Unsupported->getOption().getName(); -- 2.40.0