Skip to content

Commit 4d1cf54

Browse files
committed
[lldb] Fix build with MSVC by using LLVM_PRETTY_FUNCTION
Fixes #65157 07c215e 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.
1 parent eafe4ee commit 4d1cf54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ DYLDRendezvous::RendezvousAction DYLDRendezvous::GetAction() const {
332332
bool DYLDRendezvous::UpdateSOEntriesFromRemote() {
333333
const auto action = GetAction();
334334
Log *log = GetLog(LLDBLog::DynamicLoader);
335-
LLDB_LOG(log, "{0} action = {1}", __PRETTY_FUNCTION__, ActionToCStr(action));
335+
LLDB_LOG(log, "{0} action = {1}", LLVM_PRETTY_FUNCTION, ActionToCStr(action));
336336

337337
if (action == eNoAction)
338338
return false;
@@ -372,7 +372,7 @@ bool DYLDRendezvous::UpdateSOEntries() {
372372
m_removed_soentries.clear();
373373
const auto action = GetAction();
374374
Log *log = GetLog(LLDBLog::DynamicLoader);
375-
LLDB_LOG(log, "{0} action = {1}", __PRETTY_FUNCTION__, ActionToCStr(action));
375+
LLDB_LOG(log, "{0} action = {1}", LLVM_PRETTY_FUNCTION, ActionToCStr(action));
376376
switch (action) {
377377
case eTakeSnapshot:
378378
m_soentries.clear();

0 commit comments

Comments
 (0)