llvm.org GIT mirror llvm / ee68647
Remove unnecessary variables by folding calls into for loop header. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237090 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 5 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
19021902
19031903 raw_ostream &llvm::operator<<(raw_ostream &OS, const RecordKeeper &RK) {
19041904 OS << "------------- Classes -----------------\n";
1905 const auto &Classes = RK.getClasses();
1906 for (const auto &C : Classes)
1905 for (const auto &C : RK.getClasses())
19071906 OS << "class " << *C.second;
19081907
19091908 OS << "------------- Defs -----------------\n";
1910 const auto &Defs = RK.getDefs();
1911 for (const auto &D : Defs)
1909 for (const auto &D : RK.getDefs())
19121910 OS << "def " << *D.second;
19131911 return OS;
19141912 }