Add const qualifier.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 9 Dec 2009 01:10:37 +0000 (01:10 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 9 Dec 2009 01:10:37 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90918 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 0f8c5973c8952bdf6b5aac71a317c76a2c7b1c0d..fdd3466133813efcf28d42ce28a48bce035d502d 100644 (file)
@@ -892,7 +892,7 @@ public:
 
   /// InferPtrAlignment - Infer alignment of a load / store address. Return 0 if
   /// it cannot be inferred.
-  unsigned InferPtrAlignment(SDValue Ptr);
+  unsigned InferPtrAlignment(SDValue Ptr) const;
 
 private:
   bool RemoveNodeFromCSEMaps(SDNode *N);
index 74651c149d5a177d963633007ffd80751b47e941..851e6c040ea016e4185850f5e69d6a4884e836f9 100644 (file)
@@ -5870,7 +5870,7 @@ SDValue SelectionDAG::UnrollVectorOp(SDNode *N, unsigned ResNE) {
 
 /// InferPtrAlignment - Infer alignment of a load / store address. Return 0 if
 /// it cannot be inferred.
-unsigned SelectionDAG::InferPtrAlignment(SDValue Ptr) {
+unsigned SelectionDAG::InferPtrAlignment(SDValue Ptr) const {
   // If this is a direct reference to a stack slot, use information about the
   // stack slot's alignment.
   int FrameIdx = 1 << 31;