mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-15 04:08:07 +00:00
Add an out-of-line virtual method to provide a home for the cl::option class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29191 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f6602ce42
commit
433fd76e51
@ -150,6 +150,9 @@ class Option {
|
||||
return NormalFormatting;
|
||||
}
|
||||
|
||||
// Out of line virtual function to provide home for the class.
|
||||
virtual void anchor();
|
||||
|
||||
int NumOccurrences; // The number of times specified
|
||||
int Flags; // Flags for the argument
|
||||
unsigned Position; // Position of last occurrence of the option
|
||||
|
@ -607,6 +607,10 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
|
||||
// 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) {
|
||||
if (ArgName == 0) ArgName = ArgStr;
|
||||
if (ArgName[0] == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user