[Lldb-commits] [lldb] r362984 - [Target][NFC] Rename GetCPPLanguageRuntime to Get
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 10 14:04:32 PDT 2019
Author: xiaobai
Date: Mon Jun 10 14:04:31 2019
New Revision: 362984
URL: http://llvm.org/viewvc/llvm-project?rev=362984&view=rev
Log:
[Target][NFC] Rename GetCPPLanguageRuntime to Get
This is a followup to rL362981, in which I moved GetObjCLanguageRuntime
from Process to ObjCLanguageRuntime, renaming it to Get along the way.
Modified:
lldb/trunk/include/lldb/Target/CPPLanguageRuntime.h
lldb/trunk/source/Plugins/Language/CPlusPlus/LibCxx.cpp
Modified: lldb/trunk/include/lldb/Target/CPPLanguageRuntime.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/CPPLanguageRuntime.h?rev=362984&r1=362983&r2=362984&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/CPPLanguageRuntime.h (original)
+++ lldb/trunk/include/lldb/Target/CPPLanguageRuntime.h Mon Jun 10 14:04:31 2019
@@ -53,7 +53,7 @@ public:
return lldb::eLanguageTypeC_plus_plus;
}
- static CPPLanguageRuntime *GetCPPLanguageRuntime(Process &process) {
+ static CPPLanguageRuntime *Get(Process &process) {
return llvm::cast_or_null<CPPLanguageRuntime>(
process.GetLanguageRuntime(lldb::eLanguageTypeC_plus_plus));
}
Modified: lldb/trunk/source/Plugins/Language/CPlusPlus/LibCxx.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Language/CPlusPlus/LibCxx.cpp?rev=362984&r1=362983&r2=362984&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Language/CPlusPlus/LibCxx.cpp (original)
+++ lldb/trunk/source/Plugins/Language/CPlusPlus/LibCxx.cpp Mon Jun 10 14:04:31 2019
@@ -67,8 +67,7 @@ bool lldb_private::formatters::LibcxxFun
if (process == nullptr)
return false;
- CPPLanguageRuntime *cpp_runtime =
- CPPLanguageRuntime::GetCPPLanguageRuntime(*process);
+ CPPLanguageRuntime *cpp_runtime = CPPLanguageRuntime::Get(*process);
if (!cpp_runtime)
return false;
More information about the lldb-commits
mailing list