1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

Modernize to range-based loop

llvm-svn: 257037
This commit is contained in:
Michael Liao 2016-01-07 07:58:25 +00:00
parent 716757f08e
commit 6b8e21c1bb

View File

@ -328,11 +328,9 @@ int main(int argc, char **argv) {
if (TraceExecution)
errs() << ToolName << ": Found Program: " << ProgramToRun << '\n';
for (std::vector<std::string>::iterator i = Argv.begin(),
e = Argv.end();
i != e; ++i) {
for (const std::string &Arg : Argv) {
CommandLine.push_back(' ');
CommandLine.append(*i);
CommandLine.append(Arg);
}
if (TraceExecution)