X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FCommandLine.h;h=4efb6a67cf62b4066ac0643217190cdc15e5f0a5;hb=354362524a72b3fa43a6c09380b7ae3b2380cbba;hp=c0bfbae0370e7d31f393c0abd069739f7c02caea;hpb=894fd78d93d663df8286d4d4edeafc076e00ff15;p=oota-llvm.git diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index c0bfbae0370..4efb6a67cf6 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -350,6 +350,9 @@ struct cat { struct GenericOptionValue { virtual ~GenericOptionValue() {} virtual bool compare(const GenericOptionValue &V) const = 0; + +private: + virtual void anchor(); }; template struct OptionValue; @@ -1752,6 +1755,7 @@ void getRegisteredOptions(StringMap &Map); /// \brief Saves strings in the inheritor's stable storage and returns a stable /// raw character pointer. class StringSaver { + virtual void anchor(); public: virtual const char *SaveString(const char *Str) = 0; virtual ~StringSaver() {}; // Pacify -Wnon-virtual-dtor.