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

Side by Side Diff: include/llvm/Support/BitcodeStream.h

Issue 8393017: Bitcode streaming (Closed)
Patch Set: put destructors back, fix trailing whitespace Created 9 years 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 unified diff | Download patch
« no previous file with comments | « include/llvm/Bitcode/ReaderWriter.h ('k') | lib/Bitcode/Reader/BitcodeReader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 //===---- llvm/Bitcode/BitcodeStream.h - Lazy bitcode streaming -*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This header defines BitcodeStreamer, which fetches bytes of bitcode from
11 // a stream source. It provides support for streaming (lazy reading) of
12 // bitcode.
13 //
14 //===----------------------------------------------------------------------===//
15
16
17 #ifndef LLVM_SUPPORT_BITCODESTREAM_H_
18 #define LLVM_SUPPORT_BITCODESTREAM_H_
19
20 #include <string>
21
22 namespace llvm {
23 class MemoryBuffer;
24
25 class BitcodeStreamer {
26 public:
27 /// Fetch bytes [start-end) from the bitcode stream, and write them to the
28 /// buffer pointed to by buf. Returns the number of bytes actually written.
29 virtual size_t GetBytes(unsigned char *buf, size_t len) = 0;
30
31 virtual ~BitcodeStreamer();
32 };
33
34 BitcodeStreamer *getBitcodeFileStreamer(const std::string &Filename,
35 std::string *Err);
36
37 }
38
39 #endif // LLVM_SUPPORT_BITCODESTREAM_H_
OLDNEW
« no previous file with comments | « include/llvm/Bitcode/ReaderWriter.h ('k') | lib/Bitcode/Reader/BitcodeReader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698