aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-09-18 17:23:46 -0700
committerFangrui Song <i@maskray.me>2020-09-18 17:25:37 -0700
commit2ac06241d277c969c0dee0f40fb4f00971a4d7f7 (patch)
tree6c4a9a63d401866c50dfd74b028acec4b3a37d76 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parent034781f7f33634918025206427e6ee912ef3985b (diff)
downloadllvm-2ac06241d277c969c0dee0f40fb4f00971a4d7f7.zip
llvm-2ac06241d277c969c0dee0f40fb4f00971a4d7f7.tar.gz
llvm-2ac06241d277c969c0dee0f40fb4f00971a4d7f7.tar.bz2
[LiveDebugValues] Add `#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)` to suppress -Wunused-function
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index e39811e..5c05fbd 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -2905,6 +2905,7 @@ void InstrRefBasedLDV::vlocDataflow(
BlocksToExplore.clear();
}
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void InstrRefBasedLDV::dump_mloc_transfer(
const MLocTransferMap &mloc_transfer) const {
for (auto &P : mloc_transfer) {
@@ -2913,6 +2914,7 @@ void InstrRefBasedLDV::dump_mloc_transfer(
dbgs() << "Loc " << foo << " --> " << bar << "\n";
}
}
+#endif
void InstrRefBasedLDV::emitLocations(
MachineFunction &MF, LiveInsT SavedLiveIns, ValueIDNum **MInLocs,