From da4450d2f5ee122fb046380263cc8ee06f7f4568 Mon Sep 17 00:00:00 2001 From: Frits van Bommel Date: Thu, 30 Apr 2009 12:25:04 +0200 Subject: [PATCH] Make sure this still compiles after LLVM r70437, which introduces a specialization for command-line option template parser which does the wrong thing for us... --- dmd/mars.h | 6 ++++-- gen/cl_options.cpp | 4 ++-- gen/optimizer.cpp | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dmd/mars.h b/dmd/mars.h index 6db42544..8d45ff40 100644 --- a/dmd/mars.h +++ b/dmd/mars.h @@ -133,13 +133,15 @@ enum OS 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 @@ struct Param 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 diff --git a/gen/cl_options.cpp b/gen/cl_options.cpp index c6d95bc7..b8318ad9 100644 --- a/gen/cl_options.cpp +++ b/gen/cl_options.cpp @@ -25,7 +25,7 @@ static cl::opt useDeprecated("d", cl::ZeroOrMore, cl::location(global.params.useDeprecated)); -static cl::opt useDv1( +static cl::opt useDv1( cl::desc("Force language version:"), cl::ZeroOrMore, cl::values( @@ -49,7 +49,7 @@ static cl::opt warnings("w", cl::ZeroOrMore, cl::location(global.params.warnings)); -static cl::opt debugInfo( +static cl::opt debugInfo( cl::desc("Generating debug information:"), cl::ZeroOrMore, cl::values( diff --git a/gen/optimizer.cpp b/gen/optimizer.cpp index a825dc4a..522346a3 100644 --- a/gen/optimizer.cpp +++ b/gen/optimizer.cpp @@ -21,7 +21,7 @@ static cl::list cl::Hidden // to clean up --help output ); -static cl::opt optimizeLevel( +static cl::opt optimizeLevel( cl::desc("Setting the optimization level:"), cl::ZeroOrMore, cl::values(