Allow reducer interfaces to mutate the lists passed in

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5909 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-04-24 22:23:56 +00:00
parent ff4aaf0010
commit b4ebe13643

View File

@ -23,8 +23,8 @@ struct ListReducer {
// if the Kept list still satisfies the property, but if it is going to check
// the prefix anyway, it can.
//
virtual TestResult doTest(const std::vector<ElTy> &Prefix,
const std::vector<ElTy> &Kept) = 0;
virtual TestResult doTest(std::vector<ElTy> &Prefix,
std::vector<ElTy> &Kept) = 0;
// reduceList - This function attempts to reduce the length of the specified
// list while still maintaining the "test" property. This is the core of the