commit | b5810282eedb7ca8896f1159c714eec217490372 | [log] [tgz] |
---|---|---|
author | John Criswell <criswell@uiuc.edu> | Tue Nov 09 19:37:07 2004 +0000 |
committer | John Criswell <criswell@uiuc.edu> | Tue Nov 09 19:37:07 2004 +0000 |
tree | 2b353481f45715b613a9d88ab50def0957abdd0c | |
parent | 580a1164d8db6f6ad369d5b8b4f36c85c0968fda [diff] [blame] |
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
diff --git a/lib/Bytecode/Reader/ArchiveReader.cpp b/lib/Bytecode/Reader/ArchiveReader.cpp index 50e11d6..e126483 100644 --- a/lib/Bytecode/Reader/ArchiveReader.cpp +++ b/lib/Bytecode/Reader/ArchiveReader.cpp
@@ -58,6 +58,9 @@ if (Size >= 4 && !memcmp(MemberData, "llvm", 4)) return UserObject; + if (Size >= 4 && !memcmp(MemberData, "llvc", 4)) + return UserObject; + return Unknown; }