HomePhabricator

[clang] Adopt llvm::ErrorOr in FileManager methods

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>

Details

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