HomePhabricator

[clang] Adopt llvm::ErrorOr in FileManager methods

Authored by harlanhaskins on Aug 1 2019, 2:31 PM.

Description

[clang] Adopt llvm::ErrorOr in FileManager methods

Previously, the FileManager would use NULL returns to signify whether a file existed, but that doesn’t cover permissions issues or anything else that might occur while trying to stat or read a file. Instead, convert getFile and getDirectory into returning llvm::ErrorOr

Signed-off-by: Harlan Haskins <harlan@apple.com>
llvm-svn: 367615

Details

Committed
harlanhaskinsAug 1 2019, 2:31 PM
Parents
rG66c8bccc236f: Move register namespacing definitions from TargetRegisterInfo to Register
Branches
Unknown
Tags
Unknown