From 022840e9608207305a2e0488763f06fb1b5ad5e5 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 9 Dec 2009 07:19:48 +0000 Subject: [PATCH] DeltaAlgorithm: Add a virtual destructor and home. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90957 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/DeltaAlgorithm.h | 2 ++ lib/Support/DeltaAlgorithm.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/include/llvm/ADT/DeltaAlgorithm.h b/include/llvm/ADT/DeltaAlgorithm.h index 0cf7c7c4665..1facfa0c447 100644 --- a/include/llvm/ADT/DeltaAlgorithm.h +++ b/include/llvm/ADT/DeltaAlgorithm.h @@ -78,6 +78,8 @@ protected: virtual bool ExecuteOneTest(const changeset_ty &S) = 0; public: + virtual ~DeltaAlgorithm(); + /// Run - Minimize the set \arg Changes by executing \see ExecuteOneTest() on /// subsets of changes and returning the smallest set which still satisfies /// the test predicate. diff --git a/lib/Support/DeltaAlgorithm.cpp b/lib/Support/DeltaAlgorithm.cpp index f85ca300ab9..d1765481891 100644 --- a/lib/Support/DeltaAlgorithm.cpp +++ b/lib/Support/DeltaAlgorithm.cpp @@ -11,6 +11,9 @@ #include using namespace llvm; +DeltaAlgorithm::~DeltaAlgorithm() { +} + bool DeltaAlgorithm::GetTestResult(const changeset_ty &Changes) { if (FailedTestsCache.count(Changes)) return false; -- 2.34.1