Skip to content

Commit 2cbb496

Browse files
author
jturcotti
committed
cleanup
1 parent 82cf0c5 commit 2cbb496

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/swift/SILOptimizer/Utils/PartitionUtils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class PartitionOp {
7575
return sourceInst;
7676
}
7777

78-
void dump() const {
78+
void dump() const LLVM_ATTRIBUTE_USED {
7979
switch (OpKind) {
8080
case PartitionOpKind::Assign:
8181
llvm::dbgs() << "assign %" << OpArgs[0] << " = %" << OpArgs[1] << "\n";
@@ -301,7 +301,7 @@ class Partition {
301301
}
302302
}
303303

304-
void dump_labels() const {
304+
void dump_labels() const LLVM_ATTRIBUTE_USED {
305305
llvm::dbgs() << "Partition";
306306
if (canonical)
307307
llvm::dbgs() << "(canonical)";
@@ -311,7 +311,7 @@ class Partition {
311311
llvm::dbgs() << "}\n";
312312
}
313313

314-
void dump() {
314+
void dump() LLVM_ATTRIBUTE_USED {
315315
std::map<signed, std::vector<unsigned>> buckets;
316316

317317
for (auto [i, label] : labels) {

lib/SILOptimizer/Mandatory/SendNonSendable.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ class BlockPartitionState {
408408
}
409409

410410
public:
411-
void dump() {
411+
void dump() LLVM_ATTRIBUTE_USED {
412412
llvm::dbgs() << SEP_STR
413413
<< "BlockPartitionState[reached="
414414
<< reached
@@ -564,7 +564,7 @@ class PartitionAnalysis {
564564

565565
public:
566566

567-
void dump() {
567+
void dump() LLVM_ATTRIBUTE_USED {
568568
llvm::dbgs() << "\nPartitionAnalysis[fname=" << function->getName() << "]\n";
569569

570570
for (auto [_, blockState] : blockStates) {

0 commit comments

Comments
 (0)