summaryrefslogtreecommitdiffstats
path: root/llvm/include/Support/CommandLine.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-23 00:44:37 +0000
committerChris Lattner <sabre@nondot.org>2002-07-23 00:44:37 +0000
commitc0c03be0461a405c80b256d333e456f5ea28e8f0 (patch)
tree16d084b991bfc9f1bac6b841b0893dd6e5a5f6be /llvm/include/Support/CommandLine.h
parent38773cd86fbf2e5859adc8d7dd63b359797424ce (diff)
downloadbcm5719-llvm-c0c03be0461a405c80b256d333e456f5ea28e8f0.tar.gz
bcm5719-llvm-c0c03be0461a405c80b256d333e456f5ea28e8f0.zip
Change to avoid bug in GCC 3.0.4
llvm-svn: 2997
Diffstat (limited to 'llvm/include/Support/CommandLine.h')
-rw-r--r--llvm/include/Support/CommandLine.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/include/Support/CommandLine.h b/llvm/include/Support/CommandLine.h
index e8a4250a894..9e02a6cf417 100644
--- a/llvm/include/Support/CommandLine.h
+++ b/llvm/include/Support/CommandLine.h
@@ -173,6 +173,7 @@ public:
// occurances of -ArgStr on the command line.
//
void addArgument(const char *ArgStr);
+ void removeArgument(const char *ArgStr);
// Return the width of the option tag for printing...
virtual unsigned getOptionWidth() const = 0;
@@ -255,8 +256,8 @@ LocationClass<Ty> location(Ty &L) { return LocationClass<Ty>(L); }
//===----------------------------------------------------------------------===//
// Enum valued command line option
//
-#define clEnumVal(ENUMVAL, DESC) #ENUMVAL, ENUMVAL, DESC
-#define clEnumValN(ENUMVAL, FLAGNAME, DESC) FLAGNAME, ENUMVAL, DESC
+#define clEnumVal(ENUMVAL, DESC) #ENUMVAL, (int)ENUMVAL, DESC
+#define clEnumValN(ENUMVAL, FLAGNAME, DESC) FLAGNAME, (int)ENUMVAL, DESC
// 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
@@ -278,7 +279,7 @@ public:
// Process the varargs portion of the values...
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 *);
Values.push_back(std::make_pair(EnumName, // Add value to value map
std::make_pair(EnumVal, EnumDesc)));
OpenPOWER on IntegriCloud