Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: include/llvm/Bitcode/PNaCl/PNaClBitstreamWriter.h

Issue 14126011: Copy Bitwriter to generate PNaClBitwriter. (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/llvm/Bitcode/PNaCl/PNaClBitstreamWriter.h
diff --git a/include/llvm/Bitcode/BitstreamWriter.h b/include/llvm/Bitcode/PNaCl/PNaClBitstreamWriter.h
similarity index 98%
copy from include/llvm/Bitcode/BitstreamWriter.h
copy to include/llvm/Bitcode/PNaCl/PNaClBitstreamWriter.h
index 7b68f8761afac305852ffc93ebd45d9f3f03dc43..2d6c95eba7eec720cc869e2f0a59c3ea57c0cd6f 100644
--- a/include/llvm/Bitcode/BitstreamWriter.h
+++ b/include/llvm/Bitcode/PNaCl/PNaClBitstreamWriter.h
@@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_BITCODE_BITSTREAMWRITER_H
-#define LLVM_BITCODE_BITSTREAMWRITER_H
+#ifndef LLVM_BITCODE_PNACLBITSTREAMWRITER_H
+#define LLVM_BITCODE_PNACLBITSTREAMWRITER_H
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
@@ -22,7 +22,7 @@
namespace llvm {
-class BitstreamWriter {
+class PNaClBitstreamWriter {
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 PNaClBitstreamWriter(SmallVectorImpl<char> &O)
: Out(O), CurBit(0), CurValue(0), CurCodeSize(2) {}
- ~BitstreamWriter() {
+ ~PNaClBitstreamWriter() {
assert(CurBit == 0 && "Unflused data remaining");
assert(BlockScope.empty() && CurAbbrevs.empty() && "Block imbalance");
« no previous file with comments | « no previous file | include/llvm/Bitcode/PNaCl/PNaClReaderWriter.h » ('j') | include/llvm/Bitcode/PNaCl/PNaClReaderWriter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698