forked from OSchip/llvm-project
Remove unnecessary variables by folding calls into for loop header. NFC.
llvm-svn: 237090
This commit is contained in:
parent
a9c2a380b3
commit
a0ff540b7e
|
@ -1903,13 +1903,11 @@ void RecordKeeper::dump() const { errs() << *this; }
|
||||||
|
|
||||||
raw_ostream &llvm::operator<<(raw_ostream &OS, const RecordKeeper &RK) {
|
raw_ostream &llvm::operator<<(raw_ostream &OS, const RecordKeeper &RK) {
|
||||||
OS << "------------- Classes -----------------\n";
|
OS << "------------- Classes -----------------\n";
|
||||||
const auto &Classes = RK.getClasses();
|
for (const auto &C : RK.getClasses())
|
||||||
for (const auto &C : Classes)
|
|
||||||
OS << "class " << *C.second;
|
OS << "class " << *C.second;
|
||||||
|
|
||||||
OS << "------------- Defs -----------------\n";
|
OS << "------------- Defs -----------------\n";
|
||||||
const auto &Defs = RK.getDefs();
|
for (const auto &D : RK.getDefs())
|
||||||
for (const auto &D : Defs)
|
|
||||||
OS << "def " << *D.second;
|
OS << "def " << *D.second;
|
||||||
return OS;
|
return OS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue