Recognize compressed LLVM bytecode files.

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

llvm-svn: 17648
This commit is contained in:
John Criswell 2004-11-09 19:37:07 +00:00
parent 6a1a10aa54
commit 623dc9c5c0

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;
}