Remove unnecessary variables by folding calls into for loop header. NFC.

llvm-svn: 237090
This commit is contained in:
Craig Topper 2015-05-12 05:25:10 +00:00
parent a9c2a380b3
commit a0ff540b7e
1 changed files with 2 additions and 4 deletions

View File

@ -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;
} }