mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
Remove else after return
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0a33c410b
commit
63cf3b382b
@ -2426,13 +2426,12 @@ ObjectFile::createMachOObjectFile(MemoryBufferRef Buffer) {
|
|||||||
StringRef Magic = Buffer.getBuffer().slice(0, 4);
|
StringRef Magic = Buffer.getBuffer().slice(0, 4);
|
||||||
if (Magic == "\xFE\xED\xFA\xCE")
|
if (Magic == "\xFE\xED\xFA\xCE")
|
||||||
return MachOObjectFile::create(Buffer, false, false);
|
return MachOObjectFile::create(Buffer, false, false);
|
||||||
else if (Magic == "\xCE\xFA\xED\xFE")
|
if (Magic == "\xCE\xFA\xED\xFE")
|
||||||
return MachOObjectFile::create(Buffer, true, false);
|
return MachOObjectFile::create(Buffer, true, false);
|
||||||
else if (Magic == "\xFE\xED\xFA\xCF")
|
if (Magic == "\xFE\xED\xFA\xCF")
|
||||||
return MachOObjectFile::create(Buffer, false, true);
|
return MachOObjectFile::create(Buffer, false, true);
|
||||||
else if (Magic == "\xCF\xFA\xED\xFE")
|
if (Magic == "\xCF\xFA\xED\xFE")
|
||||||
return MachOObjectFile::create(Buffer, true, true);
|
return MachOObjectFile::create(Buffer, true, true);
|
||||||
//else
|
|
||||||
return malformedError(Buffer.getBufferIdentifier(),
|
return malformedError(Buffer.getBufferIdentifier(),
|
||||||
"Unrecognized MachO magic number");
|
"Unrecognized MachO magic number");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user