mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Modernize the getStreamedBitcodeModule interface a bit. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224499 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -61,9 +61,8 @@ public:
|
||||
init(Start, End);
|
||||
}
|
||||
|
||||
BitstreamReader(MemoryObject *bytes) : IgnoreBlockInfoNames(true) {
|
||||
BitcodeBytes.reset(bytes);
|
||||
}
|
||||
BitstreamReader(std::unique_ptr<MemoryObject> BitcodeBytes)
|
||||
: BitcodeBytes(std::move(BitcodeBytes)), IgnoreBlockInfoNames(true) {}
|
||||
|
||||
BitstreamReader(BitstreamReader &&Other) {
|
||||
*this = std::move(Other);
|
||||
|
@ -33,14 +33,11 @@ namespace llvm {
|
||||
ErrorOr<Module *> getLazyBitcodeModule(std::unique_ptr<MemoryBuffer> &&Buffer,
|
||||
LLVMContext &Context);
|
||||
|
||||
/// getStreamedBitcodeModule - Read the header of the specified stream
|
||||
/// and prepare for lazy deserialization and streaming of function bodies.
|
||||
/// On error, this returns null, and fills in *ErrMsg with an error
|
||||
/// description if ErrMsg is non-null.
|
||||
Module *getStreamedBitcodeModule(const std::string &name,
|
||||
DataStreamer *streamer,
|
||||
LLVMContext &Context,
|
||||
std::string *ErrMsg = nullptr);
|
||||
/// Read the header of the specified stream and prepare for lazy
|
||||
/// deserialization and streaming of function bodies.
|
||||
ErrorOr<std::unique_ptr<Module>>
|
||||
getStreamedBitcodeModule(StringRef Name, DataStreamer *Streamer,
|
||||
LLVMContext &Context);
|
||||
|
||||
/// Read the header of the specified bitcode buffer and extract just the
|
||||
/// triple information. If successful, this returns a string. On error, this
|
||||
|
Reference in New Issue
Block a user