OSDN Git Service

Bitcode: Add SimpleBitstreamCursor::setArtificialByteLimit
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 27 Mar 2016 22:49:32 +0000 (22:49 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 27 Mar 2016 22:49:32 +0000 (22:49 +0000)
commita115062beb6c251a607be95bfa2069699cad01b2
tree3da329392fdc24a3547aaf39636f4e1d9c3dfe58
parent2e87e9ef90d48988bf43de1c24e885e6995fb93e
Bitcode: Add SimpleBitstreamCursor::setArtificialByteLimit

Allow users of SimpleBitstreamCursor to limit the number of bytes
available to the cursor.  This is preparation for instantiating a cursor
that isn't allowed to load more bytes from a StreamingMemoryObject (just
move around the ones already-loaded).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264547 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Bitcode/BitstreamReader.h
unittests/Bitcode/BitstreamReaderTest.cpp