aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2021-06-29 16:39:05 -0700
committerDavid Blaikie <dblaikie@gmail.com>2021-06-29 16:39:59 -0700
commit632e15e766ee625ae367b2e872f3df903e507bfb (patch)
tree0d81535e9a9c240e2d88bd50c8db6e1f76f0555d /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parent6cda73e3c44968eb6fff4b73cb6f1d0ef7d861f4 (diff)
downloadllvm-632e15e766ee625ae367b2e872f3df903e507bfb.zip
llvm-632e15e766ee625ae367b2e872f3df903e507bfb.tar.gz
llvm-632e15e766ee625ae367b2e872f3df903e507bfb.tar.bz2
Conditionalize function only used in an assert to address -Wunused-function
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index 75e551b..c29900b 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -3606,15 +3606,19 @@ LDVSSABlock *LDVSSABlockIterator::operator*() {
return Updater.getSSALDVBlock(*PredIt);
}
-} // namespace
-
-namespace llvm {
+#ifndef NDEBUG
raw_ostream &operator<<(raw_ostream &out, const LDVSSAPhi &PHI) {
out << "SSALDVPHI " << PHI.PHIValNum;
return out;
}
+#endif
+
+} // namespace
+
+namespace llvm {
+
/// Template specialization to give SSAUpdater access to CFG and value
/// information. SSAUpdater calls methods in these traits, passing in the
/// LDVSSAUpdater object, to learn about blocks and the values they define.