]> granicus.if.org Git - clang/commitdiff
Driver: Emit an unsupported error on -iframework.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 13 May 2009 19:05:04 +0000 (19:05 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 13 May 2009 19:05:04 +0000 (19:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71698 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Options.def
lib/Driver/Tools.cpp

index 31b32f8ebf055e34f3b4eeb8f0c307528b2e9a66..a0586f9d8f839f3885e1d1b56760565634d2ef89 100644 (file)
@@ -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)
index ad4db49e9b3ca80fff35315e0b4c646b7228f986..0f55f8e14c0623fbb98f6f196774208629663c4f 100644 (file)
@@ -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();