projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de65922
)
Remove unnecessary variables by folding calls into for loop header. NFC.
author
Craig Topper
<craig.topper@gmail.com>
Tue, 12 May 2015 05:25:10 +0000
(
05:25
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Tue, 12 May 2015 05:25:10 +0000
(
05:25
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237090
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/TableGen/Record.cpp
patch
|
blob
|
history
diff --git
a/lib/TableGen/Record.cpp
b/lib/TableGen/Record.cpp
index 79b4e33a13da1a7825cb1b74f250d00145500069..29a1aa41b06bf7c4434b3add73969b8127fa7736 100644
(file)
--- a/
lib/TableGen/Record.cpp
+++ b/
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;
}