mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Change to avoid bug in GCC 3.0.4
llvm-svn: 2997
This commit is contained in:
parent
12672f6b14
commit
5c25ebd6f2
@ -173,6 +173,7 @@ public:
|
|||||||
// occurances of -ArgStr on the command line.
|
// occurances of -ArgStr on the command line.
|
||||||
//
|
//
|
||||||
void addArgument(const char *ArgStr);
|
void addArgument(const char *ArgStr);
|
||||||
|
void removeArgument(const char *ArgStr);
|
||||||
|
|
||||||
// Return the width of the option tag for printing...
|
// Return the width of the option tag for printing...
|
||||||
virtual unsigned getOptionWidth() const = 0;
|
virtual unsigned getOptionWidth() const = 0;
|
||||||
@ -255,8 +256,8 @@ LocationClass<Ty> location(Ty &L) { return LocationClass<Ty>(L); }
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Enum valued command line option
|
// Enum valued command line option
|
||||||
//
|
//
|
||||||
#define clEnumVal(ENUMVAL, DESC) #ENUMVAL, ENUMVAL, DESC
|
#define clEnumVal(ENUMVAL, DESC) #ENUMVAL, (int)ENUMVAL, DESC
|
||||||
#define clEnumValN(ENUMVAL, FLAGNAME, DESC) FLAGNAME, ENUMVAL, DESC
|
#define clEnumValN(ENUMVAL, FLAGNAME, DESC) FLAGNAME, (int)ENUMVAL, DESC
|
||||||
|
|
||||||
// values - For custom data types, allow specifying a group of values together
|
// values - For custom data types, allow specifying a group of values together
|
||||||
// as the values that go into the mapping that the option handler uses. Note
|
// as the values that go into the mapping that the option handler uses. Note
|
||||||
@ -278,7 +279,7 @@ public:
|
|||||||
|
|
||||||
// Process the varargs portion of the values...
|
// Process the varargs portion of the values...
|
||||||
while (const char *EnumName = va_arg(ValueArgs, const char *)) {
|
while (const char *EnumName = va_arg(ValueArgs, const char *)) {
|
||||||
DataType EnumVal = va_arg(ValueArgs, DataType);
|
DataType EnumVal = (DataType)va_arg(ValueArgs, int);
|
||||||
const char *EnumDesc = va_arg(ValueArgs, const char *);
|
const char *EnumDesc = va_arg(ValueArgs, const char *);
|
||||||
Values.push_back(std::make_pair(EnumName, // Add value to value map
|
Values.push_back(std::make_pair(EnumName, // Add value to value map
|
||||||
std::make_pair(EnumVal, EnumDesc)));
|
std::make_pair(EnumVal, EnumDesc)));
|
||||||
|
Loading…
Reference in New Issue
Block a user