From 88a941ba64a3824e1a6bac178034e4fce548f6cb Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Fri, 8 Oct 2021 18:48:02 +0000 Subject: [lldb/Plugins] Replace platform-specific macro with LLVM_PRETTY_FUNCTION (NFC) This patch refactors Scripted Process and Scripted Thread related classes to use LLVM_PRETTY_FUNCTION instead of the compiler macro. Differential Revision: https://reviews.llvm.org/D111452 Signed-off-by: Med Ismail Bennani --- lldb/source/Plugins/Process/scripted/ScriptedThread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/Plugins/Process/scripted/ScriptedThread.cpp') diff --git a/lldb/source/Plugins/Process/scripted/ScriptedThread.cpp b/lldb/source/Plugins/Process/scripted/ScriptedThread.cpp index 11db89bfc397..de1203300e4b 100644 --- a/lldb/source/Plugins/Process/scripted/ScriptedThread.cpp +++ b/lldb/source/Plugins/Process/scripted/ScriptedThread.cpp @@ -141,13 +141,13 @@ bool ScriptedThread::CalculateStopInfo() { if (!dict_sp->GetValueForKeyAsInteger("type", stop_reason_type)) return GetInterface()->ErrorWithMessage( - __PRETTY_FUNCTION__, + LLVM_PRETTY_FUNCTION, "Couldn't find value for key 'type' in stop reason dictionary.", error); StructuredData::Dictionary *data_dict; if (!dict_sp->GetValueForKeyAsDictionary("data", data_dict)) return GetInterface()->ErrorWithMessage( - __PRETTY_FUNCTION__, + LLVM_PRETTY_FUNCTION, "Couldn't find value for key 'type' in stop reason dictionary.", error); switch (stop_reason_type) { @@ -171,7 +171,7 @@ bool ScriptedThread::CalculateStopInfo() { } break; default: return GetInterface()->ErrorWithMessage( - __PRETTY_FUNCTION__, + LLVM_PRETTY_FUNCTION, llvm::Twine("Unsupported stop reason type (" + llvm::Twine(stop_reason_type) + llvm::Twine(").")) .str(), -- cgit v1.2.3