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

Unified Diff: include/llvm/Bitcode/NaCl/NaClBitstreamWriter.h

Issue 14126011: Copy Bitwriter to generate PNaClBitwriter. (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Add fixes suggested by Jan. 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
« no previous file with comments | « no previous file | include/llvm/Bitcode/NaCl/NaClReaderWriter.h » ('j') | tools/pnacl-freeze/pnacl-freeze.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « no previous file | include/llvm/Bitcode/NaCl/NaClReaderWriter.h » ('j') | tools/pnacl-freeze/pnacl-freeze.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698