aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit25a6abfa9ca4483da6cd6ef6996e780eb54595d6 (patch)
tree408bbdf7f92bb2a9e5490551f82d6ccdeb4ea0b3 /lib/Bitcode/Reader/BitcodeReader.h
parent910c6d5dc4a16917741a746ee184c417540a4a77 (diff)
downloadexternal_llvm-25a6abfa9ca4483da6cd6ef6996e780eb54595d6.zip
external_llvm-25a6abfa9ca4483da6cd6ef6996e780eb54595d6.tar.gz
external_llvm-25a6abfa9ca4483da6cd6ef6996e780eb54595d6.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.h')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.h b/lib/Bitcode/Reader/BitcodeReader.h
index 1fbf219..0dc470b 100644
--- a/lib/Bitcode/Reader/BitcodeReader.h
+++ b/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;