| Index: include/llvm/Bitcode/NaCl/NaClBitstreamWriter.h
|
| diff --git a/include/llvm/Bitcode/BitstreamWriter.h b/include/llvm/Bitcode/NaCl/NaClBitstreamWriter.h
|
| similarity index 98%
|
| copy from include/llvm/Bitcode/BitstreamWriter.h
|
| copy to include/llvm/Bitcode/NaCl/NaClBitstreamWriter.h
|
| index 7b68f8761afac305852ffc93ebd45d9f3f03dc43..11443ebd8785632916e4a10d7ee034d9254d3124 100644
|
| --- a/include/llvm/Bitcode/BitstreamWriter.h
|
| +++ b/include/llvm/Bitcode/NaCl/NaClBitstreamWriter.h
|
| @@ -1,4 +1,4 @@
|
| -//===- BitstreamWriter.h - Low-level bitstream writer interface -*- C++ -*-===//
|
| +//===- NaClBitstreamWriter.h - NaCl bitstream writer ------------*- C++ -*-===//
|
| //
|
| // The LLVM Compiler Infrastructure
|
| //
|
| @@ -12,8 +12,8 @@
|
| //
|
| //===----------------------------------------------------------------------===//
|
|
|
| -#ifndef LLVM_BITCODE_BITSTREAMWRITER_H
|
| -#define LLVM_BITCODE_BITSTREAMWRITER_H
|
| +#ifndef LLVM_BITCODE_NACL_NACLBITSTREAMWRITER_H
|
| +#define LLVM_BITCODE_NACL_NACLBITSTREAMWRITER_H
|
|
|
| #include "llvm/ADT/SmallVector.h"
|
| #include "llvm/ADT/StringRef.h"
|
| @@ -22,7 +22,7 @@
|
|
|
| namespace llvm {
|
|
|
| -class BitstreamWriter {
|
| +class NaClBitstreamWriter {
|
| SmallVectorImpl<char> &Out;
|
|
|
| /// CurBit - Always between 0 and 31 inclusive, specifies the next bit to use.
|
| @@ -93,10 +93,10 @@ class BitstreamWriter {
|
| }
|
|
|
| public:
|
| - explicit BitstreamWriter(SmallVectorImpl<char> &O)
|
| + explicit NaClBitstreamWriter(SmallVectorImpl<char> &O)
|
| : Out(O), CurBit(0), CurValue(0), CurCodeSize(2) {}
|
|
|
| - ~BitstreamWriter() {
|
| + ~NaClBitstreamWriter() {
|
| assert(CurBit == 0 && "Unflused data remaining");
|
| assert(BlockScope.empty() && CurAbbrevs.empty() && "Block imbalance");
|
|
|
|
|