OLD | NEW |
(Empty) | |
| 1 //===---- llvm/Bitcode/BitcodeStream.h - ----*- 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 // Support for streaming (lazy reading) of bitcode files on disk |
| 11 // |
| 12 //===----------------------------------------------------------------------===// |
| 13 |
| 14 |
| 15 #ifndef BITCODESTREAM_H_ |
| 16 #define BITCODESTREAM_H_ |
| 17 |
| 18 #include <stddef.h> |
| 19 #include <string> |
| 20 |
| 21 namespace llvm { |
| 22 class SMDiagnostic; |
| 23 |
| 24 typedef size_t (*StreamChunkCallback)(unsigned char*, size_t); |
| 25 |
| 26 StreamChunkCallback GetBitcodeFileStream(const std::string &Filename, |
| 27 SMDiagnostic &Err); |
| 28 } |
| 29 |
| 30 #endif // BITCODESTREAM_H_ |
OLD | NEW |