mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Add StringList support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -185,7 +185,8 @@ bool Flag::handleOccurance(const char *ArgName, const string &Arg) {
|
|||||||
} else if (Arg == "false" || Arg == "FALSE" || Arg == "False" || Arg == "0") {
|
} else if (Arg == "false" || Arg == "FALSE" || Arg == "False" || Arg == "0") {
|
||||||
Value = false;
|
Value = false;
|
||||||
} else {
|
} else {
|
||||||
return error(": '" + Arg + "' is invalid value for boolean argument! Try 0 or 1");
|
return error(": '" + Arg +
|
||||||
|
"' is invalid value for boolean argument! Try 0 or 1");
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -211,6 +212,14 @@ bool String::handleOccurance(const char *ArgName, const string &Arg) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
// StringList valued command line option implementation
|
||||||
|
//
|
||||||
|
bool StringList::handleOccurance(const char *ArgName, const string &Arg) {
|
||||||
|
Values.push_back(Arg);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Enum valued command line option implementation
|
// Enum valued command line option implementation
|
||||||
//
|
//
|
||||||
|
@@ -185,7 +185,8 @@ bool Flag::handleOccurance(const char *ArgName, const string &Arg) {
|
|||||||
} else if (Arg == "false" || Arg == "FALSE" || Arg == "False" || Arg == "0") {
|
} else if (Arg == "false" || Arg == "FALSE" || Arg == "False" || Arg == "0") {
|
||||||
Value = false;
|
Value = false;
|
||||||
} else {
|
} else {
|
||||||
return error(": '" + Arg + "' is invalid value for boolean argument! Try 0 or 1");
|
return error(": '" + Arg +
|
||||||
|
"' is invalid value for boolean argument! Try 0 or 1");
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -211,6 +212,14 @@ bool String::handleOccurance(const char *ArgName, const string &Arg) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
// StringList valued command line option implementation
|
||||||
|
//
|
||||||
|
bool StringList::handleOccurance(const char *ArgName, const string &Arg) {
|
||||||
|
Values.push_back(Arg);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Enum valued command line option implementation
|
// Enum valued command line option implementation
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user