diff options
author | John Criswell <criswell@uiuc.edu> | 2004-11-09 19:37:07 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2004-11-09 19:37:07 +0000 |
commit | 623dc9c5c05f64146af86d8b9f086191961e2614 (patch) | |
tree | 8b0921469b898d75b0f2901ccc38d6611d1a10e0 /llvm/lib/Bytecode/Reader/ArchiveReader.cpp | |
parent | 6a1a10aa54e5f9abe0b8d68e9550a706d0f30353 (diff) | |
download | bcm5719-llvm-623dc9c5c05f64146af86d8b9f086191961e2614.tar.gz bcm5719-llvm-623dc9c5c05f64146af86d8b9f086191961e2614.zip |
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
Diffstat (limited to 'llvm/lib/Bytecode/Reader/ArchiveReader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/ArchiveReader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/ArchiveReader.cpp b/llvm/lib/Bytecode/Reader/ArchiveReader.cpp index 50e11d6ab58..e1264838652 100644 --- a/llvm/lib/Bytecode/Reader/ArchiveReader.cpp +++ b/llvm/lib/Bytecode/Reader/ArchiveReader.cpp @@ -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; } |