[llvm] 376f3be - [DebugInfo] Remove redefinition of 'getDPVAssignmentMarkers' (NFC)

Jie Fu via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 23 01:56:52 PST 2024


Author: Jie Fu
Date: 2024-01-23T17:56:00+08:00
New Revision: 376f3be83444901fc4d50570bee492f0f666938f

URL: https://github.com/llvm/llvm-project/commit/376f3be83444901fc4d50570bee492f0f666938f
DIFF: https://github.com/llvm/llvm-project/commit/376f3be83444901fc4d50570bee492f0f666938f.diff

LOG: [DebugInfo] Remove redefinition of 'getDPVAssignmentMarkers' (NFC)

llvm-project/llvm/include/llvm/IR/DebugInfo.h:239:31: error: redefinition of 'getDPVAssignmentMarkers'
inline SmallVector<DPValue *> getDPVAssignmentMarkers(const Instruction *Inst) {
                              ^
llvm-project/llvm/include/llvm/IR/DebugInfo.h:233:31: note: previous definition is here
inline SmallVector<DPValue *> getDPVAssignmentMarkers(const Instruction *Inst) {
                              ^

Added: 
    

Modified: 
    llvm/include/llvm/IR/DebugInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/DebugInfo.h b/llvm/include/llvm/IR/DebugInfo.h
index 006fd02a17bfdc..b2f079393400b7 100644
--- a/llvm/include/llvm/IR/DebugInfo.h
+++ b/llvm/include/llvm/IR/DebugInfo.h
@@ -230,11 +230,6 @@ inline AssignmentMarkerRange getAssignmentMarkers(const Instruction *Inst) {
   else
     return make_range(Value::user_iterator(), Value::user_iterator());
 }
-inline SmallVector<DPValue *> getDPVAssignmentMarkers(const Instruction *Inst) {
-  if (auto *ID = Inst->getMetadata(LLVMContext::MD_DIAssignID))
-    return cast<DIAssignID>(ID)->getAllDPValueUsers();
-  return {};
-}
 
 inline SmallVector<DPValue *> getDPVAssignmentMarkers(const Instruction *Inst) {
   if (auto *ID = Inst->getMetadata(LLVMContext::MD_DIAssignID))


        


More information about the llvm-commits mailing list