mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
[TableGen] Use range-based for loop.
llvm-svn: 245191
This commit is contained in:
parent
b4d49edca1
commit
0d20382123
@ -1994,10 +1994,8 @@ static void emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName,
|
||||
|
||||
// Output the instruction conversion kind enum.
|
||||
OS << "enum InstructionConversionKind {\n";
|
||||
for (SetVector<std::string>::const_iterator
|
||||
i = InstructionConversionKinds.begin(),
|
||||
e = InstructionConversionKinds.end(); i != e; ++i)
|
||||
OS << " " << *i << ",\n";
|
||||
for (const std::string &Signature : InstructionConversionKinds)
|
||||
OS << " " << Signature << ",\n";
|
||||
OS << " CVT_NUM_SIGNATURES\n";
|
||||
OS << "};\n\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user