summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-26 20:59:02 +0000
committerChris Lattner <sabre@nondot.org>2009-04-26 20:59:02 +0000
commit277800a6435e477fc47fa14cb1e0252f3a95c10e (patch)
tree9a7a8c40cf1646e25b8ad2fb771ee9418edef04b /llvm/lib/Bitcode/Reader/BitcodeReader.h
parent64fc3c68e5505d6a958eb6a5c33c2bf2863e5d64 (diff)
downloadbcm5719-llvm-277800a6435e477fc47fa14cb1e0252f3a95c10e.tar.gz
bcm5719-llvm-277800a6435e477fc47fa14cb1e0252f3a95c10e.zip
Make a major API change to BitstreamReader: split all the reading
state out of the BitstreamReader class into a BitstreamCursor class. Doing this allows the client to have multiple cursors into the same file, each with potentially different live block stacks and abbreviation records. llvm-svn: 70157
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.h')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.h b/llvm/lib/Bitcode/Reader/BitcodeReader.h
index 1fbf219fb8e..0dc470b24a2 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.h
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.h
@@ -86,7 +86,8 @@ public:
class BitcodeReader : public ModuleProvider {
MemoryBuffer *Buffer;
- BitstreamReader Stream;
+ BitstreamReader StreamFile;
+ BitstreamCursor Stream;
const char *ErrorString;
OpenPOWER on IntegriCloud