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 | b5810282eedb7ca8896f1159c714eec217490372 (patch) | |
tree | 2b353481f45715b613a9d88ab50def0957abdd0c /lib/Archive | |
parent | 580a1164d8db6f6ad369d5b8b4f36c85c0968fda (diff) | |
download | external_llvm-b5810282eedb7ca8896f1159c714eec217490372.zip external_llvm-b5810282eedb7ca8896f1159c714eec217490372.tar.gz external_llvm-b5810282eedb7ca8896f1159c714eec217490372.tar.bz2 |
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
Diffstat (limited to 'lib/Archive')
-rw-r--r-- | lib/Archive/ArchiveReader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Archive/ArchiveReader.cpp b/lib/Archive/ArchiveReader.cpp index 50e11d6..e126483 100644 --- a/lib/Archive/ArchiveReader.cpp +++ b/lib/Archive/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; } |