mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[TableGen] Use range-based for loop. NFC
This commit is contained in:
parent
5a174914f6
commit
bf5c787068
@ -163,9 +163,9 @@ void DAGISelEmitter::run(raw_ostream &OS) {
|
||||
// Convert each variant of each pattern into a Matcher.
|
||||
Records.startTimer("Convert to matchers");
|
||||
std::vector<Matcher*> PatternMatchers;
|
||||
for (unsigned i = 0, e = Patterns.size(); i != e; ++i) {
|
||||
for (const PatternToMatch *PTM : Patterns) {
|
||||
for (unsigned Variant = 0; ; ++Variant) {
|
||||
if (Matcher *M = ConvertPatternToMatcher(*Patterns[i], Variant, CGP))
|
||||
if (Matcher *M = ConvertPatternToMatcher(*PTM, Variant, CGP))
|
||||
PatternMatchers.push_back(M);
|
||||
else
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user