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:
Justin Bogner
2015-02-16 21:28:58 +00:00
parent 4031c08c87
commit e8e3eb8397
3 changed files with 13 additions and 7 deletions

View File

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