mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 13:41:39 +00:00
Add a new BitstreamEntry concept, and add two helper methods for walking
through a BitstreamCursor that produce it: advance() and advanceSkippingSubblocks(), representing the two most common ways clients want to walk through bitcode. llvm-svn: 172919
This commit is contained in:
1 parent
9e4fc280f9
commit
ab7701749c
3 files changed
+94
-9
No files matched your search
@@ -1737,7 +1737,7 @@ bool BitcodeReader::ParseBitcodeInto(Module *M) {
|
||||
// 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 && Code == 2 &&
|
||||
if (Stream.getAbbrevIDWidth() == 2 && Code == 2 &&
|
||||
Stream.Read(6) == 2 && Stream.Read(24) == 0xa0a0a &&
|
||||
Stream.AtEndOfStream())
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user