projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes to build with GCC 3.1
[oota-llvm.git]
/
include
/
Support
/
CommandLine.h
diff --git
a/include/Support/CommandLine.h
b/include/Support/CommandLine.h
index 633227adc388b70e47915f9b1ebed36086145b56..3c9d9b0e6e1b04fa36a7bd2a6a8c77e818a65c1c 100644
(file)
--- a/
include/Support/CommandLine.h
+++ b/
include/Support/CommandLine.h
@@
-403,8
+403,8
@@
public:
// Default implementation, requires user to populate it with values somehow.
template<class Opt> // parse - Return true on error.
// Default implementation, requires user to populate it with values somehow.
template<class Opt> // parse - Return true on error.
- bool parse(Opt &O, const char *ArgName, const string &Arg) {
- string ArgVal;
+ bool parse(Opt &O, const char *ArgName, const st
d::st
ring &Arg) {
+ st
d::st
ring ArgVal;
if (hasArgStr)
ArgVal = Arg;
else
if (hasArgStr)
ArgVal = Arg;
else
@@
-441,11
+441,11
@@
public:
//
template<>
class parser<bool> {
//
template<>
class parser<bool> {
- static bool parseImpl(Option &O, const string &Arg, bool &Val);
+ static bool parseImpl(Option &O, const st
d::st
ring &Arg, bool &Val);
public:
template<class Opt> // parse - Return true on error.
public:
template<class Opt> // parse - Return true on error.
- bool parse(Opt &O, const char *ArgName, const string &Arg) {
+ bool parse(Opt &O, const char *ArgName, const st
d::st
ring &Arg) {
bool Val;
bool Error = parseImpl(O, Arg, Val);
if (!Error) O.addValue(Val);
bool Val;
bool Error = parseImpl(O, Arg, Val);
if (!Error) O.addValue(Val);
@@
-473,12
+473,12
@@
public:
//
template<>
class parser<int> {
//
template<>
class parser<int> {
- static bool parseImpl(Option &O, const string &Arg, int &Val);
+ static bool parseImpl(Option &O, const st
d::st
ring &Arg, int &Val);
public:
// parse - Return true on error.
template<class Opt>
public:
// parse - Return true on error.
template<class Opt>
- bool parse(Opt &O, const char *ArgName, const string &Arg) {
+ bool parse(Opt &O, const char *ArgName, const st
d::st
ring &Arg) {
int Val;
bool Error = parseImpl(O, Arg, Val);
if (!Error) O.addValue(Val);
int Val;
bool Error = parseImpl(O, Arg, Val);
if (!Error) O.addValue(Val);
@@
-506,12
+506,12
@@
public:
//
template<>
class parser<double> {
//
template<>
class parser<double> {
- static bool parseImpl(Option &O, const string &Arg, double &Val);
+ static bool parseImpl(Option &O, const st
d::st
ring &Arg, double &Val);
public:
// parse - Return true on error.
template<class Opt>
public:
// parse - Return true on error.
template<class Opt>
- bool parse(Opt &O, const char *ArgName, const string &Arg) {
+ bool parse(Opt &O, const char *ArgName, const st
d::st
ring &Arg) {
double Val;
bool Error = parseImpl(O, Arg, Val);
if (!Error) O.addValue(Val);
double Val;
bool Error = parseImpl(O, Arg, Val);
if (!Error) O.addValue(Val);
@@
-539,13
+539,13
@@
template<> struct parser<float> : public parser<double> {};
//--------------------------------------------------
//--------------------------------------------------
-// parser<string>
+// parser<st
d::st
ring>
//
template<>
//
template<>
-struct parser<string> {
+struct parser<st
d::st
ring> {
// parse - Return true on error.
template<class Opt>
// parse - Return true on error.
template<class Opt>
- bool parse(Opt &O, const char *ArgName, const string &Arg) {
+ bool parse(Opt &O, const char *ArgName, const st
d::st
ring &Arg) {
O.addValue(Arg);
return false;
}
O.addValue(Arg);
return false;
}