Recognize compressed LLVM bytecode files.

This should fix the problem of not being able to link compressed LLVM
bytecode files from LLVM libraries.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
John Criswell 2004-11-09 19:37:07 +00:00
parent 580a1164d8
commit b5810282ee
3 changed files with 9 additions and 0 deletions

View File

@ -58,6 +58,9 @@ static enum ObjectType getObjectType(ar_hdr *H, std::string MemberName,
if (Size >= 4 && !memcmp(MemberData, "llvm", 4))
return UserObject;
if (Size >= 4 && !memcmp(MemberData, "llvc", 4))
return UserObject;
return Unknown;
}

View File

@ -58,6 +58,9 @@ static enum ObjectType getObjectType(ar_hdr *H, std::string MemberName,
if (Size >= 4 && !memcmp(MemberData, "llvm", 4))
return UserObject;
if (Size >= 4 && !memcmp(MemberData, "llvc", 4))
return UserObject;
return Unknown;
}

View File

@ -58,6 +58,9 @@ static enum ObjectType getObjectType(ar_hdr *H, std::string MemberName,
if (Size >= 4 && !memcmp(MemberData, "llvm", 4))
return UserObject;
if (Size >= 4 && !memcmp(MemberData, "llvc", 4))
return UserObject;
return Unknown;
}