aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-12-09 07:19:48 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-12-09 07:19:48 +0000
commit022840e9608207305a2e0488763f06fb1b5ad5e5 (patch)
tree5c0b8f7c0fc1134135abc061b6c883cc28a5cfaa
parente18b97121c286eeff5efe89150b093bf1b7b7bfc (diff)
DeltaAlgorithm: Add a virtual destructor and home.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90957 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/DeltaAlgorithm.h2
-rw-r--r--lib/Support/DeltaAlgorithm.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/DeltaAlgorithm.h b/include/llvm/ADT/DeltaAlgorithm.h
index 0cf7c7c466..1facfa0c44 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 f85ca300ab..d176548189 100644
--- a/lib/Support/DeltaAlgorithm.cpp
+++ b/lib/Support/DeltaAlgorithm.cpp
@@ -11,6 +11,9 @@
#include <iterator>
using namespace llvm;
+DeltaAlgorithm::~DeltaAlgorithm() {
+}
+
bool DeltaAlgorithm::GetTestResult(const changeset_ty &Changes) {
if (FailedTestsCache.count(Changes))
return false;