mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
InstrProf: Use ErrorOr for IndexedInstrProfReader::create (NFC)
The other InstrProfReader::create factories were updated to return ErrorOr in r221120, and it's odd for these APIs not to match. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229433 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -292,8 +292,8 @@ public:
|
||||
uint64_t getMaximumFunctionCount() { return MaxFunctionCount; }
|
||||
|
||||
/// Factory method to create an indexed reader.
|
||||
static std::error_code
|
||||
create(std::string Path, std::unique_ptr<IndexedInstrProfReader> &Result);
|
||||
static ErrorOr<std::unique_ptr<IndexedInstrProfReader>>
|
||||
create(std::string Path);
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
Reference in New Issue
Block a user