[llvm-commits] [llvm] r90957 - in /llvm/trunk: include/llvm/ADT/DeltaAlgorithm.h lib/Support/DeltaAlgorithm.cpp

Daniel Dunbar daniel at zuster.org
Tue Dec 8 23:19:48 PST 2009


Author: ddunbar
Date: Wed Dec  9 01:19:48 2009
New Revision: 90957

URL: http://llvm.org/viewvc/llvm-project?rev=90957&view=rev
Log:
DeltaAlgorithm: Add a virtual destructor and home.

Modified:
    llvm/trunk/include/llvm/ADT/DeltaAlgorithm.h
    llvm/trunk/lib/Support/DeltaAlgorithm.cpp

Modified: llvm/trunk/include/llvm/ADT/DeltaAlgorithm.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DeltaAlgorithm.h?rev=90957&r1=90956&r2=90957&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/DeltaAlgorithm.h (original)
+++ llvm/trunk/include/llvm/ADT/DeltaAlgorithm.h Wed Dec  9 01:19:48 2009
@@ -78,6 +78,8 @@
   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.

Modified: llvm/trunk/lib/Support/DeltaAlgorithm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/DeltaAlgorithm.cpp?rev=90957&r1=90956&r2=90957&view=diff

==============================================================================
--- llvm/trunk/lib/Support/DeltaAlgorithm.cpp (original)
+++ llvm/trunk/lib/Support/DeltaAlgorithm.cpp Wed Dec  9 01:19:48 2009
@@ -11,6 +11,9 @@
 #include <iterator>
 using namespace llvm;
 
+DeltaAlgorithm::~DeltaAlgorithm() {
+}
+
 bool DeltaAlgorithm::GetTestResult(const changeset_ty &Changes) {
   if (FailedTestsCache.count(Changes))
     return false;





More information about the llvm-commits mailing list