[TableGen] Remove a defaulted function argument that is never called with another value. NFC

llvm-svn: 328075
This commit is contained in:
Craig Topper 2018-03-21 05:13:04 +00:00
parent 6f2cc9b107
commit e26118473e
2 changed files with 3 additions and 5 deletions

View File

@ -405,11 +405,9 @@ std::string CodeGenSchedModels::genRWName(ArrayRef<unsigned> Seq, bool IsRead) {
return Name;
}
unsigned CodeGenSchedModels::getSchedRWIdx(Record *Def, bool IsRead,
unsigned After) const {
unsigned CodeGenSchedModels::getSchedRWIdx(Record *Def, bool IsRead) const {
const std::vector<CodeGenSchedRW> &RWVec = IsRead ? SchedReads : SchedWrites;
assert(After < RWVec.size() && "start position out of bounds");
for (std::vector<CodeGenSchedRW>::const_iterator I = RWVec.begin() + After,
for (std::vector<CodeGenSchedRW>::const_iterator I = RWVec.begin(),
E = RWVec.end(); I != E; ++I) {
if (I->TheDef == Def)
return I - RWVec.begin();

View File

@ -336,7 +336,7 @@ public:
return const_cast<CodeGenSchedModels&>(*this).getSchedRW(Def);
}
unsigned getSchedRWIdx(Record *Def, bool IsRead, unsigned After = 0) const;
unsigned getSchedRWIdx(Record *Def, bool IsRead) const;
// Return true if the given write record is referenced by a ReadAdvance.
bool hasReadOfWrite(Record *WriteDef) const;