aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Bitcode/NaCl/NaClReaderWriter.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Bitcode/NaCl/NaClReaderWriter.h')
-rw-r--r--include/llvm/Bitcode/NaCl/NaClReaderWriter.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/llvm/Bitcode/NaCl/NaClReaderWriter.h b/include/llvm/Bitcode/NaCl/NaClReaderWriter.h
new file mode 100644
index 0000000000..2b905b97e8
--- /dev/null
+++ b/include/llvm/Bitcode/NaCl/NaClReaderWriter.h
@@ -0,0 +1,29 @@
+//===-- llvm/Bitcode/NaCl/NaClReaderWriter.h - ------------------*- C++ -*-===//
+// NaCl Bitcode reader/writer.
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This header defines interfaces to read and write LLVM bitcode files/streams.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_BITCODE_NACL_NACLREADERWRITER_H
+#define LLVM_BITCODE_NACL_NACLREADERWRITER_H
+
+namespace llvm {
+ class Module;
+ class raw_ostream;
+
+ /// NaClWriteBitcodeToFile - Write the specified module to the
+ /// specified raw output stream, using PNaCl wire format. For
+ /// streams where it matters, the given stream should be in "binary"
+ /// mode.
+ void NaClWriteBitcodeToFile(const Module *M, raw_ostream &Out);
+
+} // end llvm namespace
+#endif