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

Unified Diff: include/llvm/Bitcode/BitcodeStream.h

Issue 8393017: Bitcode streaming (Closed)
Patch Set: Created 9 years, 2 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/BitstreamReader.h » ('j') | include/llvm/Support/IRReader.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/llvm/Bitcode/BitcodeStream.h
diff --git a/include/llvm/Bitcode/BitcodeStream.h b/include/llvm/Bitcode/BitcodeStream.h
new file mode 100644
index 0000000000000000000000000000000000000000..5c1dd7b3e97ef8dd67eb322b321926c5a528f6bd
--- /dev/null
+++ b/include/llvm/Bitcode/BitcodeStream.h
@@ -0,0 +1,30 @@
+//===---- llvm/Bitcode/BitcodeStream.h - ----*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// Support for streaming (lazy reading) of bitcode files on disk
+//
+//===----------------------------------------------------------------------===//
+
+
+#ifndef BITCODESTREAM_H_
+#define BITCODESTREAM_H_
+
+#include <stddef.h>
+#include <string>
+
+namespace llvm {
+class SMDiagnostic;
+
+typedef size_t (*StreamChunkCallback)(unsigned char*, size_t);
+
+StreamChunkCallback GetBitcodeFileStream(const std::string &Filename,
+ SMDiagnostic &Err);
+}
+
+#endif // BITCODESTREAM_H_
« no previous file with comments | « no previous file | include/llvm/Bitcode/BitstreamReader.h » ('j') | include/llvm/Support/IRReader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698