summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-18 23:59:33 +0000
committerChris Lattner <sabre@nondot.org>2006-07-18 23:59:33 +0000
commita0ddced752ecc84bc9413a9d03c4fc92824ee623 (patch)
tree9c758fd43288efe5cac08dafac7fe7ce6baefd2b /llvm
parentaeccc6e67681ef778e65338a050c12772a77f865 (diff)
downloadbcm5719-llvm-a0ddced752ecc84bc9413a9d03c4fc92824ee623.tar.gz
bcm5719-llvm-a0ddced752ecc84bc9413a9d03c4fc92824ee623.zip
Add an out-of-line virtual method to provide a home for the cl::option class.
llvm-svn: 29191
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/CommandLine.h3
-rw-r--r--llvm/lib/Support/CommandLine.cpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 8517032fefe..b352686e6d9 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -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
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 164cb5286f3..08b6fcbd590 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -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)
OpenPOWER on IntegriCloud