diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-10-03 08:06:41 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-10-03 08:06:41 -0700 |
commit | 97e49363c618e0984b16bfaca3c5f60a97e442b8 (patch) | |
tree | d839acd5dd7e81b2a7918b37c27be8a5c049cd05 | |
parent | 3b0e78e84065b446ec8a77f02bdbd5ac213af000 (diff) |
PNaCl bitcode reader: Remove Xcode/ranlib-related hack
This is a very Mac OS X-specific hack which isn't relevant to PNaCl.
PNaCl doesn't use Xcode's ranlib for processing bitcode libraries.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3590
TEST=toolchain trybots
Review URL: https://codereview.chromium.org/25635004
-rw-r--r-- | lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp index e1e545343f..85f815a8a9 100644 --- a/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp +++ b/lib/Bitcode/NaCl/Reader/NaClBitcodeReader.cpp @@ -915,15 +915,6 @@ bool NaClBitcodeReader::ParseBitcodeInto(Module *M) { continue; case NaClBitstreamEntry::Record: // There should be no records in the top-level of blocks. - - // The ranlib in Xcode 4 will align archive members by appending newlines - // to the end of them. If this file size is a multiple of 4 but not 8, we - // have to read and ignore these final 4 bytes :-( - if (Stream.getAbbrevIDWidth() == 2 && Entry.ID == 2 && - Stream.Read(6) == 2 && Stream.Read(24) == 0xa0a0a && - Stream.AtEndOfStream()) - return false; - return Error("Invalid record at top-level"); } } |