aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h
diff options
context:
space:
mode:
authorKarl Schimpf <kschimpf@google.com>2013-06-13 13:12:03 -0700
committerKarl Schimpf <kschimpf@google.com>2013-06-13 13:12:03 -0700
commit5d2171152d8441be311af367276e7e016877c05c (patch)
treee43213eb4b12676133ece44038cf5c66265b67a9 /include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h
parentdfb5a31ae3d5c3ec9db280941422dc4160d0822d (diff)
Fix reading of headers when using a streamable memory object.
Fixes bug where we computed the length of fields buffer on the size of a pointer, rather then the actual length of the field. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3485 R=dschuff@chromium.org Review URL: https://codereview.chromium.org/17003002
Diffstat (limited to 'include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h')
-rw-r--r--include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h b/include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h
index 6e35f62067..8febf95564 100644
--- a/include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h
+++ b/include/llvm/Bitcode/NaCl/NaClBitcodeHeader.h
@@ -22,7 +22,7 @@
#include <vector>
namespace llvm {
-class StreamingMemoryObject;
+class StreamableMemoryObject;
// Class representing a variable-size metadata field in the bitcode header.
// Also contains the list of known (typed) Tag IDs.
@@ -167,7 +167,7 @@ public:
// \brief Read the PNaCl bitcode header, recording the fields found
// in the header. Returns false if able to read (all of) the bitcode header.
- bool Read(StreamingMemoryObject *Bytes);
+ bool Read(StreamableMemoryObject *Bytes);
// \brief Returns the number of bytes read to consume the header.
size_t getHeaderSize() { return HeaderSize; }