Skip to content

Commit 655a3fd

Browse files
committed
[lldb] Use correct log API inSwiftLanguageRuntimeDynamicTypeResolution (NFC)
1 parent fbc2eaa commit 655a3fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntimeDynamicTypeResolution.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,9 +1111,9 @@ SwiftLanguageRuntimeImpl::GetNumChildren(CompilerType type,
11111111
auto *cti = tc.getClassInstanceTypeInfo(tr, 0, &tip);
11121112
if (auto *rti =
11131113
llvm::dyn_cast_or_null<swift::reflection::RecordTypeInfo>(cti)) {
1114-
LLDB_LOG(GetLog(LLDBLog::Types),
1115-
"%s: class RecordTypeInfo(num_fields=%i)",
1116-
type.GetMangledTypeName().GetCString(), rti->getNumFields());
1114+
LLDB_LOGF(GetLog(LLDBLog::Types),
1115+
"%s: class RecordTypeInfo(num_fields=%i)",
1116+
type.GetMangledTypeName().GetCString(), rti->getNumFields());
11171117

11181118
// The superclass, if any, is an extra child.
11191119
if (builder.lookupSuperclass(tr))
@@ -1124,8 +1124,8 @@ SwiftLanguageRuntimeImpl::GetNumChildren(CompilerType type,
11241124
return {};
11251125
}
11261126
// FIXME: Implement more cases.
1127-
LLDB_LOG(GetLog(LLDBLog::Types), "%s: unimplemented type info",
1128-
type.GetMangledTypeName().GetCString());
1127+
LLDB_LOGF(GetLog(LLDBLog::Types), "%s: unimplemented type info",
1128+
type.GetMangledTypeName().GetCString());
11291129
return {};
11301130
}
11311131

0 commit comments

Comments
 (0)