mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-01 07:30:31 +00:00
[TableGen] Use range-based for loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245191 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c18d928f5d
commit
28d23b88be
@ -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