Move ~Pass() from Pass.h into Pass.cpp
authorDevang Patel <dpatel@apple.com>
Thu, 26 Apr 2007 21:33:42 +0000 (21:33 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 26 Apr 2007 21:33:42 +0000 (21:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36498 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 84ec8442fb8cb8dfd1a31edcfbe07f6ce5138d40..1ab6ff9a720c88fe13a8a296be3420243e399968 100644 (file)
@@ -88,7 +88,7 @@ class Pass {
   Pass(const Pass &);           // DO NOT IMPLEMENT
 public:
   Pass() : Resolver(0), PassInfoCache(0) {}
-  virtual ~Pass() { delete Resolver; } // Destructor is virtual so we can be subclassed
+  virtual ~Pass();
 
   /// getPassName - Return a nice clean name for a pass.  This usually
   /// implemented in terms of the name that is registered by one of the
index be49ae41a183c3a71630006c16431951707eef7d..e6b31b302a952dd52ffb694df6b865cd95f87bd3 100644 (file)
@@ -27,6 +27,11 @@ using namespace llvm;
 // Pass Implementation
 //
 
+// Force out-of-line virtual method.
+Pass::~Pass() { 
+  delete Resolver; 
+}
+
 // Force out-of-line virtual method.
 ModulePass::~ModulePass() { }