forked from OSchip/llvm-project
Add an out-of-line virtual method to provide a home for the cl::option class.
llvm-svn: 29191
This commit is contained in:
parent
aeccc6e676
commit
a0ddced752
|
@ -150,6 +150,9 @@ class Option {
|
||||||
return NormalFormatting;
|
return NormalFormatting;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Out of line virtual function to provide home for the class.
|
||||||
|
virtual void anchor();
|
||||||
|
|
||||||
int NumOccurrences; // The number of times specified
|
int NumOccurrences; // The number of times specified
|
||||||
int Flags; // Flags for the argument
|
int Flags; // Flags for the argument
|
||||||
unsigned Position; // Position of last occurrence of the option
|
unsigned Position; // Position of last occurrence of the option
|
||||||
|
|
|
@ -607,6 +607,10 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
|
||||||
// Option Base class implementation
|
// Option Base class implementation
|
||||||
//
|
//
|
||||||
|
|
||||||
|
// Out of line virtual function to provide home for the class.
|
||||||
|
void Option::anchor() {
|
||||||
|
}
|
||||||
|
|
||||||
bool Option::error(std::string Message, const char *ArgName) {
|
bool Option::error(std::string Message, const char *ArgName) {
|
||||||
if (ArgName == 0) ArgName = ArgStr;
|
if (ArgName == 0) ArgName = ArgStr;
|
||||||
if (ArgName[0] == 0)
|
if (ArgName[0] == 0)
|
||||||
|
|
Loading…
Reference in New Issue