r220023 - Remove incorrect usage of JoinedOrSeparate.

Richard Smith richard-llvm at metafoo.co.uk
Thu Oct 16 18:52:48 PDT 2014


Author: rsmith
Date: Thu Oct 16 20:52:48 2014
New Revision: 220023

URL: http://llvm.org/viewvc/llvm-project?rev=220023&view=rev
Log:
Remove incorrect usage of JoinedOrSeparate.

Modified:
    cfe/trunk/include/clang/Driver/Options.td
    cfe/trunk/test/Driver/modules.m

Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=220023&r1=220022&r2=220023&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Thu Oct 16 20:52:48 2014
@@ -654,7 +654,7 @@ def fmodule_maps : Flag <["-"], "fmodule
 def fmodule_name : JoinedOrSeparate<["-"], "fmodule-name=">, Group<f_Group>,
   Flags<[DriverOption,CC1Option]>, MetaVarName<"<name>">,
   HelpText<"Specify the name of the module to build">;
-def fmodule_map_file : JoinedOrSeparate<["-"], "fmodule-map-file=">,
+def fmodule_map_file : Joined<["-"], "fmodule-map-file=">,
   Group<f_Group>, Flags<[DriverOption,CC1Option]>, MetaVarName<"<file>">,
   HelpText<"Load this module map file">;
 def fmodules_ignore_macro : Joined<["-"], "fmodules-ignore-macro=">, Group<f_Group>, Flags<[CC1Option]>,

Modified: cfe/trunk/test/Driver/modules.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/modules.m?rev=220023&r1=220022&r2=220023&view=diff
==============================================================================
--- cfe/trunk/test/Driver/modules.m (original)
+++ cfe/trunk/test/Driver/modules.m Thu Oct 16 20:52:48 2014
@@ -36,5 +36,5 @@
 
 // RUN: %clang -fmodules -fmodule-map-file=foo.map -fmodule-map-file=bar.map -### %s 2>&1 | FileCheck -check-prefix=CHECK-MODULE-MAP-FILES %s
 // CHECK-MODULE-MAP-FILES: "-fmodules"
-// CHECK-MODULE-MAP-FILES: "-fmodule-map-file=" "foo.map"
-// CHECK-MODULE-MAP-FILES: "-fmodule-map-file=" "bar.map"
+// CHECK-MODULE-MAP-FILES: "-fmodule-map-file=foo.map"
+// CHECK-MODULE-MAP-FILES: "-fmodule-map-file=bar.map"





More information about the cfe-commits mailing list