diff options
author | Alex Langford <apl@fb.com> | 2019-06-08 18:45:00 +0000 |
---|---|---|
committer | Alex Langford <apl@fb.com> | 2019-06-08 18:45:00 +0000 |
commit | 056f6f1856513209b46f68ca119e6fcf09aae604 (patch) | |
tree | 2432d841afeff8e8f7f84e9516b827cf768c28c6 /lldb/source/Plugins/Language/ObjC/NSSet.cpp | |
parent | 6ddd7aa4c3015e45b6624eb1f1e166a4fcf9cec7 (diff) | |
download | bcm5719-llvm-056f6f1856513209b46f68ca119e6fcf09aae604.tar.gz bcm5719-llvm-056f6f1856513209b46f68ca119e6fcf09aae604.zip |
[LanguageRuntime] Introduce LLVM-style casts
Summary:
Using llvm-style rtti gives us stronger guarantees around casting
LanguageRuntimes.
As discussed in D62755
Differential Revision: https://reviews.llvm.org/D62934
llvm-svn: 362884
Diffstat (limited to 'lldb/source/Plugins/Language/ObjC/NSSet.cpp')
-rw-r--r-- | lldb/source/Plugins/Language/ObjC/NSSet.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Language/ObjC/NSSet.cpp b/lldb/source/Plugins/Language/ObjC/NSSet.cpp index 96f616173ac..cb6f59acb6c 100644 --- a/lldb/source/Plugins/Language/ObjC/NSSet.cpp +++ b/lldb/source/Plugins/Language/ObjC/NSSet.cpp @@ -225,9 +225,7 @@ bool lldb_private::formatters::NSSetSummaryProvider( if (!process_sp) return false; - ObjCLanguageRuntime *runtime = - (ObjCLanguageRuntime *)process_sp->GetLanguageRuntime( - lldb::eLanguageTypeObjC); + ObjCLanguageRuntime *runtime = process_sp->GetObjCLanguageRuntime(); if (!runtime) return false; @@ -304,9 +302,7 @@ lldb_private::formatters::NSSetSyntheticFrontEndCreator( lldb::ProcessSP process_sp(valobj_sp->GetProcessSP()); if (!process_sp) return nullptr; - ObjCLanguageRuntime *runtime = - (ObjCLanguageRuntime *)process_sp->GetLanguageRuntime( - lldb::eLanguageTypeObjC); + ObjCLanguageRuntime *runtime = process_sp->GetObjCLanguageRuntime(); if (!runtime) return nullptr; |