[llvm] [DebugInfo][NFC] Constify debug DbgVariableRecord::{isDbgValue,isDbgDeclare} (PR #105570)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 11:53:41 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-debuginfo
Author: Matt Davis (enferex)
<details>
<summary>Changes</summary>
Constify debug DbgVariableRecord::{isDbgValue,isDbgDeclare}.
---
Full diff: https://github.com/llvm/llvm-project/pull/105570.diff
1 Files Affected:
- (modified) llvm/include/llvm/IR/DebugProgramInstruction.h (+2-2)
``````````diff
diff --git a/llvm/include/llvm/IR/DebugProgramInstruction.h b/llvm/include/llvm/IR/DebugProgramInstruction.h
index 8d7427cc67e2d9..f5aa34678a53a5 100644
--- a/llvm/include/llvm/IR/DebugProgramInstruction.h
+++ b/llvm/include/llvm/IR/DebugProgramInstruction.h
@@ -398,8 +398,8 @@ class DbgVariableRecord : public DbgRecord, protected DebugValueUser {
}
};
- bool isDbgDeclare() { return Type == LocationType::Declare; }
- bool isDbgValue() { return Type == LocationType::Value; }
+ bool isDbgDeclare() const { return Type == LocationType::Declare; }
+ bool isDbgValue() const { return Type == LocationType::Value; }
/// Get the locations corresponding to the variable referenced by the debug
/// info intrinsic. Depending on the intrinsic, this could be the
``````````
</details>
https://github.com/llvm/llvm-project/pull/105570
More information about the llvm-commits
mailing list