1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

DeltaAlgorithm: Add a virtual destructor and home.

llvm-svn: 90957
This commit is contained in:
Daniel Dunbar 2009-12-09 07:19:48 +00:00
parent e0207b46d2
commit a8dc0ca084
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -11,6 +11,9 @@
#include <iterator>
using namespace llvm;
DeltaAlgorithm::~DeltaAlgorithm() {
}
bool DeltaAlgorithm::GetTestResult(const changeset_ty &Changes) {
if (FailedTestsCache.count(Changes))
return false;