1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[llvm-rtdyld] Use range-based loop. NFC.

llvm-svn: 249923
This commit is contained in:
Davide Italiano 2015-10-10 00:45:24 +00:00
parent 1364b6b382
commit 8b3ac7fec5

View File

@ -625,10 +625,10 @@ static int linkAndVerify() {
// If we don't have any input files, read from stdin. // If we don't have any input files, read from stdin.
if (!InputFileList.size()) if (!InputFileList.size())
InputFileList.push_back("-"); InputFileList.push_back("-");
for(unsigned i = 0, e = InputFileList.size(); i != e; ++i) { for (auto &Filename : InputFileList) {
// Load the input memory buffer. // Load the input memory buffer.
ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer = ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer =
MemoryBuffer::getFileOrSTDIN(InputFileList[i]); MemoryBuffer::getFileOrSTDIN(Filename);
if (std::error_code EC = InputBuffer.getError()) if (std::error_code EC = InputBuffer.getError())
return Error("unable to read input: '" + EC.message() + "'"); return Error("unable to read input: '" + EC.message() + "'");