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

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

Issue 14126011: Copy Bitwriter to generate PNaClBitwriter. (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Change file names to use NaCl instead of PNaCl 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/NaCl/NaClReaderWriter.h
diff --git a/include/llvm/Bitcode/NaCl/NaClReaderWriter.h b/include/llvm/Bitcode/NaCl/NaClReaderWriter.h
new file mode 100644
index 0000000000000000000000000000000000000000..d1774918045be8c8bbdfe51ac5d2bc7c6a3851d7
--- /dev/null
+++ b/include/llvm/Bitcode/NaCl/NaClReaderWriter.h
@@ -0,0 +1,29 @@
+//===-- llvm/Bitcode/PNaCl/PNaClReaderWriter.h - ----------------*- C++ -*-===//
jvoung (off chromium) 2013/04/25 17:42:45 Is the header meant to have reader functions too (
Karl 2013/04/25 20:48:17 Yes. However, I haven't added that part yet. I did
+// 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_PNACLREADERWRITER_H
+#define LLVM_BITCODE_PNACLREADERWRITER_H
+
+namespace llvm {
+ class Module;
+ class raw_ostream;
+
+ /// PNaClWriteBitcodeToFile - 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 PNaClWriteBitcodeToFile(const Module *M, raw_ostream &Out);
+
+} // end llvm namespace
+#endif

Powered by Google App Engine
This is Rietveld 408576698