diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-12-17 00:18:18 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-12-17 00:18:18 +0000 |
commit | 6ca5b8f5f42fbfa78abe874e49ae20f28b9bd583 (patch) | |
tree | b9ac340468df5227e6c0c6dca4ff292f399f57a5 /lib | |
parent | b49fa616d47a39193c59d610964276ddb1df732a (diff) | |
download | external_llvm-6ca5b8f5f42fbfa78abe874e49ae20f28b9bd583.zip external_llvm-6ca5b8f5f42fbfa78abe874e49ae20f28b9bd583.tar.gz external_llvm-6ca5b8f5f42fbfa78abe874e49ae20f28b9bd583.tar.bz2 |
Make getObjectType() smarter about ranlibbed Mac OS X archives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10493 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Archive/ArchiveReader.cpp | 2 | ||||
-rw-r--r-- | lib/Bytecode/Archive/ArchiveReader.cpp | 2 | ||||
-rw-r--r-- | lib/Bytecode/Reader/ArchiveReader.cpp | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/lib/Archive/ArchiveReader.cpp b/lib/Archive/ArchiveReader.cpp index 21f1f7d..b147cb3 100644 --- a/lib/Archive/ArchiveReader.cpp +++ b/lib/Archive/ArchiveReader.cpp @@ -53,6 +53,8 @@ static enum ObjectType getObjectType(ar_hdr *H, unsigned char *MemberData, // Check for sections with special names... if (!memcmp(H->name, "__.SYMDEF ", 16)) return ArchiveSymbolTable; + if (!memcmp(H->name, "__.SYMDEF SORTED", 16)) + return ArchiveSymbolTable; if (!memcmp(H->name, "// ", 16)) return SVR4LongFilename; diff --git a/lib/Bytecode/Archive/ArchiveReader.cpp b/lib/Bytecode/Archive/ArchiveReader.cpp index 21f1f7d..b147cb3 100644 --- a/lib/Bytecode/Archive/ArchiveReader.cpp +++ b/lib/Bytecode/Archive/ArchiveReader.cpp @@ -53,6 +53,8 @@ static enum ObjectType getObjectType(ar_hdr *H, unsigned char *MemberData, // Check for sections with special names... if (!memcmp(H->name, "__.SYMDEF ", 16)) return ArchiveSymbolTable; + if (!memcmp(H->name, "__.SYMDEF SORTED", 16)) + return ArchiveSymbolTable; if (!memcmp(H->name, "// ", 16)) return SVR4LongFilename; diff --git a/lib/Bytecode/Reader/ArchiveReader.cpp b/lib/Bytecode/Reader/ArchiveReader.cpp index 21f1f7d..b147cb3 100644 --- a/lib/Bytecode/Reader/ArchiveReader.cpp +++ b/lib/Bytecode/Reader/ArchiveReader.cpp @@ -53,6 +53,8 @@ static enum ObjectType getObjectType(ar_hdr *H, unsigned char *MemberData, // Check for sections with special names... if (!memcmp(H->name, "__.SYMDEF ", 16)) return ArchiveSymbolTable; + if (!memcmp(H->name, "__.SYMDEF SORTED", 16)) + return ArchiveSymbolTable; if (!memcmp(H->name, "// ", 16)) return SVR4LongFilename; |