Skip to content
Commit 461f0722 authored by Harlan Haskins's avatar Harlan Haskins
Browse files

[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: default avatarHarlan Haskins <harlan@apple.com>
llvm-svn: 367615
parent 66c8bccc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment