aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Debugify.cpp
diff options
context:
space:
mode:
authorOCHyams <orlando.hyams@sony.com>2023-01-06 08:42:18 +0000
committerOCHyams <orlando.hyams@sony.com>2023-01-06 09:15:02 +0000
commit042107494d341f0e6eb38b474ec8bed13b6fd978 (patch)
tree614dc66ad0580bca958880201ebd64ca42eadf76 /llvm/lib/Transforms/Utils/Debugify.cpp
parent9e84e038447e283d020ae01aebb15e0e66ef3642 (diff)
downloadllvm-042107494d341f0e6eb38b474ec8bed13b6fd978.zip
llvm-042107494d341f0e6eb38b474ec8bed13b6fd978.tar.gz
llvm-042107494d341f0e6eb38b474ec8bed13b6fd978.tar.bz2
[DebugInfo][NFC] Rename is/setUndef to is/setKilllocation
These names better reflect the semantics and also the implementation, since it's not just "undef" operands that are sentinels used to signal that the debug intrinsic terminates dominating locations definitions. Related to https://discourse.llvm.org/t/auto-undef-debug-uses-of-a-deleted-value Reviewed By: StephenTozer Differential Revision: https://reviews.llvm.org/D140903
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Debugify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Debugify.cpp b/llvm/lib/Transforms/Utils/Debugify.cpp
index b114353..9894736 100644
--- a/llvm/lib/Transforms/Utils/Debugify.cpp
+++ b/llvm/lib/Transforms/Utils/Debugify.cpp
@@ -345,7 +345,7 @@ bool llvm::collectDebugInfoMetadata(Module &M,
if (I.getDebugLoc().getInlinedAt())
continue;
// Skip undef values.
- if (DVI->isUndef())
+ if (DVI->isKillLocation())
continue;
auto *Var = DVI->getVariable();
@@ -588,7 +588,7 @@ bool llvm::checkDebugInfoMetadata(Module &M,
if (I.getDebugLoc().getInlinedAt())
continue;
// Skip undef values.
- if (DVI->isUndef())
+ if (DVI->isKillLocation())
continue;
auto *Var = DVI->getVariable();