Mercurial > projects > ldc
changeset 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 | 00a307a393f2 |
children | 680b4df0ea36 |
files | dmd/mars.h gen/cl_options.cpp gen/optimizer.cpp |
diffstat | 3 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/dmd/mars.h Thu Apr 30 11:56:03 2009 +0200 +++ b/dmd/mars.h Thu Apr 30 12:25:04 2009 +0200 @@ -133,13 +133,15 @@ OSSolaris, }; +typedef unsigned char ubyte; + // Put command line switches in here struct Param { bool obj; // write object file bool link; // perform link bool verbose; // verbose compile - char symdebug; // insert debug symbolic information + ubyte symdebug; // insert debug symbolic information #if !IN_LLVM // LDC uses a different mechanism bool optimize; // run optimizer @@ -159,7 +161,7 @@ bool useUnitTests; // generate unittest code bool useInline; // inline expand functions bool warnings; // enable warnings - char Dversion; // D version number + ubyte Dversion; // D version number char safe; // enforce safe memory model char *argv0; // program name
--- a/gen/cl_options.cpp Thu Apr 30 11:56:03 2009 +0200 +++ b/gen/cl_options.cpp Thu Apr 30 12:25:04 2009 +0200 @@ -25,7 +25,7 @@ cl::ZeroOrMore, cl::location(global.params.useDeprecated)); -static cl::opt<char, true> useDv1( +static cl::opt<ubyte, true> useDv1( cl::desc("Force language version:"), cl::ZeroOrMore, cl::values( @@ -49,7 +49,7 @@ cl::ZeroOrMore, cl::location(global.params.warnings)); -static cl::opt<char, true> debugInfo( +static cl::opt<ubyte, true> debugInfo( cl::desc("Generating debug information:"), cl::ZeroOrMore, cl::values(
--- a/gen/optimizer.cpp Thu Apr 30 11:56:03 2009 +0200 +++ b/gen/optimizer.cpp Thu Apr 30 12:25:04 2009 +0200 @@ -21,7 +21,7 @@ cl::Hidden // to clean up --help output ); -static cl::opt<char> optimizeLevel( +static cl::opt<unsigned char> optimizeLevel( cl::desc("Setting the optimization level:"), cl::ZeroOrMore, cl::values(