[Lldb-commits] [lldb] 4d1cf54 - [lldb] Fix build with MSVC by using LLVM_PRETTY_FUNCTION

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 1 00:41:07 PDT 2023


Author: David Spickett
Date: 2023-09-01T07:40:35Z
New Revision: 4d1cf5403fc05a738f2d548429dbd51cb2300765

URL: https://github.com/llvm/llvm-project/commit/4d1cf5403fc05a738f2d548429dbd51cb2300765
DIFF: https://github.com/llvm/llvm-project/commit/4d1cf5403fc05a738f2d548429dbd51cb2300765.diff

LOG: [lldb] Fix build with MSVC by using LLVM_PRETTY_FUNCTION

Fixes #65157

07c215e8a8af54d0084af7291ac29fef3672fcd8 added some extra logging
which compiles ok with clang but not msvc. Use LLVM_PRETTY_FUNCTION
to fix that.

Fix suggested by Carlos Alberto Enciso.

Added: 
    

Modified: 
    lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
index 1ef284c4690629..ebda9b230e677a 100644
--- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
+++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
@@ -332,7 +332,7 @@ DYLDRendezvous::RendezvousAction DYLDRendezvous::GetAction() const {
 bool DYLDRendezvous::UpdateSOEntriesFromRemote() {
   const auto action = GetAction();
   Log *log = GetLog(LLDBLog::DynamicLoader);
-  LLDB_LOG(log, "{0} action = {1}", __PRETTY_FUNCTION__, ActionToCStr(action));
+  LLDB_LOG(log, "{0} action = {1}", LLVM_PRETTY_FUNCTION, ActionToCStr(action));
 
   if (action == eNoAction)
     return false;
@@ -372,7 +372,7 @@ bool DYLDRendezvous::UpdateSOEntries() {
   m_removed_soentries.clear();
   const auto action = GetAction();
   Log *log = GetLog(LLDBLog::DynamicLoader);
-  LLDB_LOG(log, "{0} action = {1}", __PRETTY_FUNCTION__, ActionToCStr(action));
+  LLDB_LOG(log, "{0} action = {1}", LLVM_PRETTY_FUNCTION, ActionToCStr(action));
   switch (action) {
   case eTakeSnapshot:
     m_soentries.clear();


        


More information about the lldb-commits mailing list