Add an out-of-line virtual method to provide a home for the cl::option class.
authorChris Lattner <sabre@nondot.org>
Tue, 18 Jul 2006 23:59:33 +0000 (23:59 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Jul 2006 23:59:33 +0000 (23:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29191 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CommandLine.h
lib/Support/CommandLine.cpp

index 8517032fefebf14c64fa1525ce37c133dbeb9126..b352686e6d9ac0bd4f5c8adaaba1944aa7309fdc 100644 (file)
@@ -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
index 164cb5286f33230f249028f65626600f66956a4b..08b6fcbd590372c4cbc6038c0c2e09246ed44e97 100644 (file)
@@ -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)