aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKarl Schimpf <kschimpf@google.com>2013-11-21 10:34:00 -0800
committerKarl Schimpf <kschimpf@google.com>2013-11-21 10:34:00 -0800
commit7026af7138fccfb256456b04b375d39b025bdb7c (patch)
tree0afbf310102dd6975b6f2fc3fda8120313b91825 /include
parent44e5b95659ac983b60877a5606f893105d0c6057 (diff)
Clean up handling of PNaCl bitcode headers.
Write out all of PNaCl bitcode headers using a single interface function. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3720 R=jvoung@chromium.org Review URL: https://codereview.chromium.org/61753017
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Bitcode/NaCl/NaClReaderWriter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Bitcode/NaCl/NaClReaderWriter.h b/include/llvm/Bitcode/NaCl/NaClReaderWriter.h
index d415b85de8..c3c15851a0 100644
--- a/include/llvm/Bitcode/NaCl/NaClReaderWriter.h
+++ b/include/llvm/Bitcode/NaCl/NaClReaderWriter.h
@@ -24,6 +24,8 @@ namespace llvm {
class LLVMContext;
class Module;
class raw_ostream;
+ class NaClBitcodeHeader;
+ class NaClBitstreamWriter;
/// \brief Defines the integer bit size used to model pointers in PNaCl.
static const unsigned PNaClIntPtrTypeBitSize = 32;
@@ -98,5 +100,10 @@ namespace llvm {
BufPtr[3] == 'E';
}
+ // NaClWriteHeader - Write the contents of the bitcode header to the
+ // corresponding bitcode stream.
+ void NaClWriteHeader(const NaClBitcodeHeader &Header,
+ NaClBitstreamWriter &Stream);
+
} // end llvm namespace
#endif