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:
parent
1364b6b382
commit
8b3ac7fec5
@ -625,10 +625,10 @@ static int linkAndVerify() {
|
||||
// If we don't have any input files, read from stdin.
|
||||
if (!InputFileList.size())
|
||||
InputFileList.push_back("-");
|
||||
for(unsigned i = 0, e = InputFileList.size(); i != e; ++i) {
|
||||
for (auto &Filename : InputFileList) {
|
||||
// Load the input memory buffer.
|
||||
ErrorOr<std::unique_ptr<MemoryBuffer>> InputBuffer =
|
||||
MemoryBuffer::getFileOrSTDIN(InputFileList[i]);
|
||||
MemoryBuffer::getFileOrSTDIN(Filename);
|
||||
|
||||
if (std::error_code EC = InputBuffer.getError())
|
||||
return Error("unable to read input: '" + EC.message() + "'");
|
||||
|
Loading…
Reference in New Issue
Block a user