forked from OSchip/llvm-project
[TableGen] Remove a defaulted function argument that is never called with another value. NFC
llvm-svn: 328075
This commit is contained in:
parent
6f2cc9b107
commit
e26118473e
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue