give PassNameParser a home.
authorChris Lattner <sabre@nondot.org>
Fri, 22 Jan 2010 06:29:25 +0000 (06:29 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 22 Jan 2010 06:29:25 +0000 (06:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94162 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/PassNameParser.h
lib/VMCore/Pass.cpp

index ea4fe01f78d7c594cc2ebcdc1352a121a973728e..cdca978cfef64cc642f0ca201824acfa5dc2d57a 100644 (file)
@@ -41,7 +41,9 @@ class PassNameParser : public PassRegistrationListener,
   cl::Option *Opt;
 public:
   PassNameParser() : Opt(0) {}
-
+  virtual ~PassNameParser();
+                         
+                         
   void initialize(cl::Option &O) {
     Opt = &O;
     cl::parser<const PassInfo*>::initialize(O);
index 39da8fbe87ac7cbabad43dc480b9efd4fc7ec042..45000f2bef54682be3602583796c276b289b7b9f 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/ADT/StringMap.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/ManagedStatic.h"
+#include "llvm/Support/PassNameParser.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/System/Atomic.h"
 #include "llvm/System/Mutex.h"
@@ -394,6 +395,8 @@ void PassRegistrationListener::enumeratePasses() {
   getPassRegistrar()->EnumerateWith(this);
 }
 
+PassNameParser::~PassNameParser() {}
+
 //===----------------------------------------------------------------------===//
 //   AnalysisUsage Class Implementation
 //