mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Return a unique_ptr from getLazyBitcodeModule and parseBitcodeFile. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239858 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -32,7 +32,7 @@ namespace llvm {
|
||||
/// deserialization of function bodies. If ShouldLazyLoadMetadata is true,
|
||||
/// lazily load metadata as well. If successful, this moves Buffer. On
|
||||
/// error, this *does not* move Buffer.
|
||||
ErrorOr<Module *>
|
||||
ErrorOr<std::unique_ptr<Module>>
|
||||
getLazyBitcodeModule(std::unique_ptr<MemoryBuffer> &&Buffer,
|
||||
LLVMContext &Context,
|
||||
DiagnosticHandlerFunction DiagnosticHandler = nullptr,
|
||||
@ -52,7 +52,7 @@ namespace llvm {
|
||||
DiagnosticHandlerFunction DiagnosticHandler = nullptr);
|
||||
|
||||
/// Read the specified bitcode file, returning the module.
|
||||
ErrorOr<Module *>
|
||||
ErrorOr<std::unique_ptr<Module>>
|
||||
parseBitcodeFile(MemoryBufferRef Buffer, LLVMContext &Context,
|
||||
DiagnosticHandlerFunction DiagnosticHandler = nullptr);
|
||||
|
||||
|
Reference in New Issue
Block a user