| 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_
|
|
|