llvm.org GIT mirror llvm / 0f7c92a
[llvm-cvtres] Allow parameters preceded by '-' in addition to '/' The real cvtres.exe also allows parameters in either form. Differential Revision: https://reviews.llvm.org/D46358 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331402 91177308-0d34-0410-b5e6-96231b3b80d8 Martin Storsjo 1 year, 3 months ago
2 changed file(s) with 15 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
77 // test_resource.res
88
99 RUN: llvm-cvtres /verbose /out:%t %p/Inputs/test_resource.res
10 RUN: llvm-readobj -symbols %t | FileCheck %s
11
12 // Test that parameters can be preceded by '-' in addition to '/':
13 RUN: llvm-cvtres -verbose -machine:X86 -out:%t %p/Inputs/test_resource.res
1014 RUN: llvm-readobj -symbols %t | FileCheck %s
1115
1216 CHECK: Name: $R000000
0 include "llvm/Option/OptParser.td"
11
2 def DEFINE : Joined<["/"], "DEFINE:">, HelpText<"">, MetaVarName<"symbol">;
3 def FOLDDUPS : Flag<["/"], "FOLDDUPS:">, HelpText<"">;
4 def MACHINE : Joined<["/"], "MACHINE:">, HelpText<"">, MetaVarName<"{ARM|ARM64|EBC|IA64|X64|X86}">;
5 def NOLOGO : Flag<["/"], "NOLOGO">, HelpText<"">;
6 def OUT : Joined<["/"], "OUT:">, HelpText<"">, MetaVarName<"filename">;
7 def READONLY : Flag<["/"], "READONLY">, HelpText<"">;
8 def VERBOSE : Flag<["/"], "VERBOSE">, HelpText<"">;
9 def HELP : Flag<["/"], "HELP">;
10 def H : Flag<["/"], "H">, Alias;
2 // All the switches can be preceded by either '/' or '-'.
3
4 def DEFINE : Joined<["/", "-"], "DEFINE:">, HelpText<"">, MetaVarName<"symbol">;
5 def FOLDDUPS : Flag<["/", "-"], "FOLDDUPS:">, HelpText<"">;
6 def MACHINE : Joined<["/", "-"], "MACHINE:">, HelpText<"">, MetaVarName<"{ARM|ARM64|EBC|IA64|X64|X86}">;
7 def NOLOGO : Flag<["/", "-"], "NOLOGO">, HelpText<"">;
8 def OUT : Joined<["/", "-"], "OUT:">, HelpText<"">, MetaVarName<"filename">;
9 def READONLY : Flag<["/", "-"], "READONLY">, HelpText<"">;
10 def VERBOSE : Flag<["/", "-"], "VERBOSE">, HelpText<"">;
11 def HELP : Flag<["/", "-"], "HELP">;
12 def H : Flag<["/", "-"], "H">, Alias;