Mercurial > projects > ldc
comparison gen/cl_options.cpp @ 1281:29d3861aa2da
Make sure this still compiles after LLVM r70437, which introduces a
specialization for command-line option template parser<char> which does the
wrong thing for us...
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Thu, 30 Apr 2009 12:25:04 +0200 |
parents | e40c65bd8c5d |
children | 46f6365a50d7 |
comparison
equal
deleted
inserted
replaced
1280:00a307a393f2 | 1281:29d3861aa2da |
---|---|
23 static cl::opt<bool, true> useDeprecated("d", | 23 static cl::opt<bool, true> useDeprecated("d", |
24 cl::desc("Allow deprecated language features"), | 24 cl::desc("Allow deprecated language features"), |
25 cl::ZeroOrMore, | 25 cl::ZeroOrMore, |
26 cl::location(global.params.useDeprecated)); | 26 cl::location(global.params.useDeprecated)); |
27 | 27 |
28 static cl::opt<char, true> useDv1( | 28 static cl::opt<ubyte, true> useDv1( |
29 cl::desc("Force language version:"), | 29 cl::desc("Force language version:"), |
30 cl::ZeroOrMore, | 30 cl::ZeroOrMore, |
31 cl::values( | 31 cl::values( |
32 clEnumValN(1, "v1", "D language version 1.00"), | 32 clEnumValN(1, "v1", "D language version 1.00"), |
33 clEnumValEnd), | 33 clEnumValEnd), |
47 static cl::opt<bool, true> warnings("w", | 47 static cl::opt<bool, true> warnings("w", |
48 cl::desc("Enable warnings"), | 48 cl::desc("Enable warnings"), |
49 cl::ZeroOrMore, | 49 cl::ZeroOrMore, |
50 cl::location(global.params.warnings)); | 50 cl::location(global.params.warnings)); |
51 | 51 |
52 static cl::opt<char, true> debugInfo( | 52 static cl::opt<ubyte, true> debugInfo( |
53 cl::desc("Generating debug information:"), | 53 cl::desc("Generating debug information:"), |
54 cl::ZeroOrMore, | 54 cl::ZeroOrMore, |
55 cl::values( | 55 cl::values( |
56 clEnumValN(1, "g", "Generate debug information"), | 56 clEnumValN(1, "g", "Generate debug information"), |
57 clEnumValN(2, "gc", "Same as -g, but pretend to be C"), | 57 clEnumValN(2, "gc", "Same as -g, but pretend to be C"), |