From 6e21ff0b0a8e4f0878431afa5628bb1c2db0b8e1 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 26 Apr 2007 21:33:42 +0000 Subject: [PATCH] Move ~Pass() from Pass.h into Pass.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36498 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Pass.h | 2 +- lib/VMCore/Pass.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 84ec8442fb8..1ab6ff9a720 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -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 diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp index be49ae41a18..e6b31b302a9 100644 --- a/lib/VMCore/Pass.cpp +++ b/lib/VMCore/Pass.cpp @@ -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() { } -- 2.34.1