diff options
author | Harlan Haskins <harlan@harlanhaskins.com> | 2019-08-01 21:31:49 +0000 |
---|---|---|
committer | Harlan Haskins <harlan@harlanhaskins.com> | 2019-08-01 21:31:49 +0000 |
commit | 461f0722dd26487c1faa497ba37aabed1477a561 (patch) | |
tree | 4b92c879f5fb1b812b00fc04e3bc7706598b6c6f /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 66c8bccc236f5633d7de9b6264384b02a821b714 (diff) | |
download | bcm5719-llvm-461f0722dd26487c1faa497ba37aabed1477a561.tar.gz bcm5719-llvm-461f0722dd26487c1faa497ba37aabed1477a561.zip |
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions