From 7ced2e0b304e76ab746c7d9a54ad8d4930445a38 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 9 Dec 2009 01:10:37 +0000 Subject: [PATCH] Add const qualifier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90918 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/SelectionDAG.h | 2 +- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index 0f8c5973c89..fdd34661338 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -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); diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 74651c149d5..851e6c040ea 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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;