From a0ff540b7e16fae62f8be0fedf65fe8ff20fbcf5 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 12 May 2015 05:25:10 +0000 Subject: [PATCH] Remove unnecessary variables by folding calls into for loop header. NFC. llvm-svn: 237090 --- llvm/lib/TableGen/Record.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp index 79b4e33a13da..29a1aa41b06b 100644 --- a/llvm/lib/TableGen/Record.cpp +++ b/llvm/lib/TableGen/Record.cpp @@ -1903,13 +1903,11 @@ void RecordKeeper::dump() const { errs() << *this; } 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; }