mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
580a1164d8
commit
b5810282ee
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user