[llvm] 743e70b - [DebugInfo][NFC] Constify debug DbgVariableRecord::{isDbgValue,isDbgDeclare} (#105570)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 04:12:36 PDT 2024


Author: Matt Davis
Date: 2024-08-22T07:12:33-04:00
New Revision: 743e70bb7578276ac331c534547ef0d65600a8c1

URL: https://github.com/llvm/llvm-project/commit/743e70bb7578276ac331c534547ef0d65600a8c1
DIFF: https://github.com/llvm/llvm-project/commit/743e70bb7578276ac331c534547ef0d65600a8c1.diff

LOG: [DebugInfo][NFC] Constify debug DbgVariableRecord::{isDbgValue,isDbgDeclare}  (#105570)

Constify debug DbgVariableRecord::{isDbgValue,isDbgDeclare}.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/DebugProgramInstruction.h b/llvm/include/llvm/IR/DebugProgramInstruction.h
index e6dd1e979794e2..a6605052ba83d3 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


        


More information about the llvm-commits mailing list