Use the return of readBytes to find out if we are at the end of the stream.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 12 Nov 2014 18:37:00 +0000 (18:37 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 12 Nov 2014 18:37:00 +0000 (18:37 +0000)
commitea3c2111f43cd8f67dd44e03cd58d019efa5f634
treee9ac5b6797a319a27cf713e5fc6f68e2d3f1cfd3
parentbc8114f73339f49619dc1b4c016ccbf6f9ca0082
Use the return of readBytes to find out if we are at the end of the stream.

This allows the removal of isObjectEnd and opens the way for reading 64 bits
at a time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221804 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Bitcode/BitstreamReader.h
include/llvm/Support/MemoryObject.h
include/llvm/Support/StreamingMemoryObject.h
lib/Support/StreamingMemoryObject.cpp