diff options
Diffstat (limited to 'include/llvm/Bitcode/Serialize.h')
-rw-r--r-- | include/llvm/Bitcode/Serialize.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/Serialize.h b/include/llvm/Bitcode/Serialize.h index a465bec..74637f5 100644 --- a/include/llvm/Bitcode/Serialize.h +++ b/include/llvm/Bitcode/Serialize.h @@ -25,7 +25,7 @@ namespace llvm { class Serializer { BitstreamWriter& Stream; SmallVector<uint64_t,10> Record; - bool inBlock; + unsigned BlockLevel; typedef DenseMap<const void*,unsigned> MapTy; MapTy PtrMap; @@ -56,6 +56,9 @@ public: void Flush() { if (inRecord()) EmitRecord(); } + void EnterBlock(unsigned BlockID = 8, unsigned CodeLen = 3); + void ExitBlock(); + private: void EmitRecord(); inline bool inRecord() { return Record.size() > 0; } |