Skip to content

Commit 2ac0624

Browse files
committed
[LiveDebugValues] Add #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) to suppress -Wunused-function
1 parent 034781f commit 2ac0624

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2905,6 +2905,7 @@ void InstrRefBasedLDV::vlocDataflow(
29052905
BlocksToExplore.clear();
29062906
}
29072907

2908+
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
29082909
void InstrRefBasedLDV::dump_mloc_transfer(
29092910
const MLocTransferMap &mloc_transfer) const {
29102911
for (auto &P : mloc_transfer) {
@@ -2913,6 +2914,7 @@ void InstrRefBasedLDV::dump_mloc_transfer(
29132914
dbgs() << "Loc " << foo << " --> " << bar << "\n";
29142915
}
29152916
}
2917+
#endif
29162918

29172919
void InstrRefBasedLDV::emitLocations(
29182920
MachineFunction &MF, LiveInsT SavedLiveIns, ValueIDNum **MInLocs,

0 commit comments

Comments
 (0)