diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-09 07:19:48 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-09 07:19:48 +0000 |
commit | d333139411d18f659285c1f7b565c9366a862769 (patch) | |
tree | eae2e88e7cc0eded58b21ee3797028185f5fd92c /llvm | |
parent | 0c315471684817fda3a7343cd4ba7e352fad6799 (diff) | |
download | bcm5719-llvm-d333139411d18f659285c1f7b565c9366a862769.tar.gz bcm5719-llvm-d333139411d18f659285c1f7b565c9366a862769.zip |
DeltaAlgorithm: Add a virtual destructor and home.
llvm-svn: 90957
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/ADT/DeltaAlgorithm.h | 2 | ||||
-rw-r--r-- | llvm/lib/Support/DeltaAlgorithm.cpp | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/DeltaAlgorithm.h b/llvm/include/llvm/ADT/DeltaAlgorithm.h index 0cf7c7c4665..1facfa0c447 100644 --- a/llvm/include/llvm/ADT/DeltaAlgorithm.h +++ b/llvm/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/llvm/lib/Support/DeltaAlgorithm.cpp b/llvm/lib/Support/DeltaAlgorithm.cpp index f85ca300ab9..d1765481891 100644 --- a/llvm/lib/Support/DeltaAlgorithm.cpp +++ b/llvm/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; |