llvm.org GIT mirror llvm / dbb2245
[TableGen] Remove a defaulted function argument that is never called with another value. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328075 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 2 years ago
2 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
404404 return Name;
405405 }
406406
407 unsigned CodeGenSchedModels::getSchedRWIdx(Record *Def, bool IsRead,
408 unsigned After) const {
407 unsigned CodeGenSchedModels::getSchedRWIdx(Record *Def, bool IsRead) const {
409408 const std::vector &RWVec = IsRead ? SchedReads : SchedWrites;
410 assert(After < RWVec.size() && "start position out of bounds");
411 for (std::vector::const_iterator I = RWVec.begin() + After,
409 for (std::vector::const_iterator I = RWVec.begin(),
412410 E = RWVec.end(); I != E; ++I) {
413411 if (I->TheDef == Def)
414412 return I - RWVec.begin();
335335 return const_cast(*this).getSchedRW(Def);
336336 }
337337
338 unsigned getSchedRWIdx(Record *Def, bool IsRead, unsigned After = 0) const;
338 unsigned getSchedRWIdx(Record *Def, bool IsRead) const;
339339
340340 // Return true if the given write record is referenced by a ReadAdvance.
341341 bool hasReadOfWrite(Record *WriteDef) const;