diff options
author | Alex Langford <apl@fb.com> | 2019-07-30 22:12:34 +0000 |
---|---|---|
committer | Alex Langford <apl@fb.com> | 2019-07-30 22:12:34 +0000 |
commit | 0e252e38ef84e42cc0b6d0e6b0f0894f6867e5a7 (patch) | |
tree | e74b7e4f611ee1a334968d8cedd4c9f3cb921269 /lldb/packages/Python/lldbsuite/test/expression_command/context-object-objc | |
parent | d56dc1d926b9ee2317f3766d21700bdc77dd84f6 (diff) | |
download | bcm5719-llvm-0e252e38ef84e42cc0b6d0e6b0f0894f6867e5a7.tar.gz bcm5719-llvm-0e252e38ef84e42cc0b6d0e6b0f0894f6867e5a7.zip |
[Symbol] Use llvm::Expected when getting TypeSystems
Summary:
This commit achieves the following:
- Functions used to return a `TypeSystem *` return an
`llvm::Expected<TypeSystem *>` now. This means that the result of a call
is always checked, forcing clients to move more carefully.
- `TypeSystemMap::GetTypeSystemForLanguage` will either return an Error or a
non-null pointer to a TypeSystem.
Reviewers: JDevlieghere, davide, compnerd
Subscribers: jdoerfert, lldb-commits
Differential Revision: https://reviews.llvm.org/D65122
llvm-svn: 367360
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/context-object-objc')
0 files changed, 0 insertions, 0 deletions