1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

silence annoying gcc 4.3 warnings

llvm-svn: 36681
This commit is contained in:
Chris Lattner 2007-05-03 18:15:56 +00:00
parent d363044771
commit 1cc146e0ef

View File

@ -44,11 +44,12 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
assert(length >=4 && "Invalid magic number length");
switch (magic[0]) {
case 'l':
if (magic[1] == 'l' && magic[2] == 'v')
if (magic[1] == 'l' && magic[2] == 'v') {
if (magic[3] == 'c')
return CompressedBytecode_FileType;
else if (magic[3] == 'm')
return Bytecode_FileType;
}
break;
case '!':
if (length >= 8)
@ -57,7 +58,7 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
break;
case '\177':
if (magic[1] == 'E' && magic[2] == 'L' && magic[3] == 'F')
if (magic[1] == 'E' && magic[2] == 'L' && magic[3] == 'F') {
if (length >= 18 && magic[17] == 0)
switch (magic[16]) {
default: break;
@ -66,6 +67,7 @@ sys::IdentifyFileType(const char*magic, unsigned length) {
case 3: return ELF_SharedObject_FileType;
case 4: return ELF_Core_FileType;
}
}
break;
case 0xCA: