summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2019-08-26 18:29:51 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2019-08-26 18:29:51 +0000
commit9ef6c49baf45a06d5b54cc9c790c9397e584ba48 (patch)
tree6401921d31ed1ac3b53fb7de5daa7c09f5911f39 /lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py
parent36d1588f017bb6e971cb14cc6e7094c3db9c0436 (diff)
downloadbcm5719-llvm-9ef6c49baf45a06d5b54cc9c790c9397e584ba48.tar.gz
bcm5719-llvm-9ef6c49baf45a06d5b54cc9c790c9397e584ba48.zip
FileManager: Use llvm::Expected in new getFileRef API
`FileManager::getFileRef` is a modern API which we expect to convert to over time. We should modernize the error handling as well, using `llvm::Expected` instead of `llvm::ErrorOr`, to help clients that care about errors to ensure nothing is missed. However, not all clients care. I've also added another path for those that don't: - `FileEntryRef` is now copy- and move-assignable (using a pointer instead of a reference). - `FileManager::getOptionalFileRef` returns an `llvm::Optional` instead of `llvm::Expected`. - Added an `llvm::expectedToOptional` utility in case this is useful elsewhere. https://reviews.llvm.org/D66705 llvm-svn: 369943
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud