Skip to content

Commit c9c9286

Browse files
authored
Remove SymbolStringPtr derefs in debugging output.
1 parent a71d319 commit c9c9286

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/tools/llvm-jitlink/llvm-jitlink.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,12 +419,12 @@ static Error applyHarnessPromotions(Session &S, LinkGraph &G) {
419419
if (!S.CanonicalWeakDefs.count(*Sym->getName()) ||
420420
S.CanonicalWeakDefs[*Sym->getName()] != G.getName()) {
421421
LLVM_DEBUG({
422-
dbgs() << " Externalizing weak symbol " << *Sym->getName() << "\n";
422+
dbgs() << " Externalizing weak symbol " << Sym->getName() << "\n";
423423
});
424424
DefinitionsToRemove.push_back(Sym);
425425
} else {
426426
LLVM_DEBUG({
427-
dbgs() << " Making weak symbol " << *Sym->getName() << " strong\n";
427+
dbgs() << " Making weak symbol " << Sym->getName() << " strong\n";
428428
});
429429
if (S.HarnessExternals.count(*Sym->getName()))
430430
Sym->setScope(Scope::Default);
@@ -433,12 +433,12 @@ static Error applyHarnessPromotions(Session &S, LinkGraph &G) {
433433
Sym->setLinkage(Linkage::Strong);
434434
}
435435
} else if (S.HarnessExternals.count(*Sym->getName())) {
436-
LLVM_DEBUG(dbgs() << " Promoting " << *Sym->getName() << "\n");
436+
LLVM_DEBUG(dbgs() << " Promoting " << Sym->getName() << "\n");
437437
Sym->setScope(Scope::Default);
438438
Sym->setLive(true);
439439
continue;
440440
} else if (S.HarnessDefinitions.count(*Sym->getName())) {
441-
LLVM_DEBUG(dbgs() << " Externalizing " << *Sym->getName() << "\n");
441+
LLVM_DEBUG(dbgs() << " Externalizing " << Sym->getName() << "\n");
442442
DefinitionsToRemove.push_back(Sym);
443443
}
444444
}

0 commit comments

Comments
 (0)