From: Hans Wennborg Date: Thu, 1 Aug 2013 19:46:33 +0000 (+0000) Subject: Options.td: O0 and O4 are not Joined options X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60704acfbdae5d4c95caf042b3fb73f8da7e6122;p=clang Options.td: O0 and O4 are not Joined options (I'm not sure how to test this because the Driver will still accept e.g. "-O4foo", but it goes in the catch-all -O option instead of -O4.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187602 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index e532b3751d..18390acc84 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -213,8 +213,8 @@ def MT : JoinedOrSeparate<["-"], "MT">, Group, Flags<[CC1Option]>, HelpText<"Specify target for dependency">; def Mach : Flag<["-"], "Mach">; def M : Flag<["-"], "M">, Group; -def O0 : Joined<["-"], "O0">, Group, Flags<[CC1Option]>; -def O4 : Joined<["-"], "O4">, Group, Flags<[CC1Option]>; +def O0 : Flag<["-"], "O0">, Group, Flags<[CC1Option]>; +def O4 : Flag<["-"], "O4">, Group, Flags<[CC1Option]>; def ObjCXX : Flag<["-"], "ObjC++">, Flags<[DriverOption]>, HelpText<"Treat source input files as Objective-C++ inputs">; def ObjC : Flag<["-"], "ObjC">, Flags<[DriverOption]>,