mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-05 08:58:30 +00:00
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:
parent
6a1a10aa54
commit
623dc9c5c0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user