From: Craig Topper Date: Sun, 16 Aug 2015 21:27:10 +0000 (+0000) Subject: [TableGen] Use range-based for loop. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=28d23b88be9cd24e1ef83ca1ae2d8d8740c918c3;p=oota-llvm.git [TableGen] Use range-based for loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245191 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index 30dbb11b62a..f0882500496 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -1994,10 +1994,8 @@ static void emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName, // Output the instruction conversion kind enum. OS << "enum InstructionConversionKind {\n"; - for (SetVector::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";