[llvm] r237090 - Remove unnecessary variables by folding calls into for loop header. NFC.
Craig Topper
craig.topper at gmail.com
Mon May 11 22:25:10 PDT 2015
Author: ctopper
Date: Tue May 12 00:25:10 2015
New Revision: 237090
URL: http://llvm.org/viewvc/llvm-project?rev=237090&view=rev
Log:
Remove unnecessary variables by folding calls into for loop header. NFC.
Modified:
llvm/trunk/lib/TableGen/Record.cpp
Modified: llvm/trunk/lib/TableGen/Record.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/Record.cpp?rev=237090&r1=237089&r2=237090&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/Record.cpp (original)
+++ llvm/trunk/lib/TableGen/Record.cpp Tue May 12 00:25:10 2015
@@ -1903,13 +1903,11 @@ void RecordKeeper::dump() const { errs()
raw_ostream &llvm::operator<<(raw_ostream &OS, const RecordKeeper &RK) {
OS << "------------- Classes -----------------\n";
- const auto &Classes = RK.getClasses();
- for (const auto &C : Classes)
+ for (const auto &C : RK.getClasses())
OS << "class " << *C.second;
OS << "------------- Defs -----------------\n";
- const auto &Defs = RK.getDefs();
- for (const auto &D : Defs)
+ for (const auto &D : RK.getDefs())
OS << "def " << *D.second;
return OS;
}
More information about the llvm-commits
mailing list