diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-12-09 01:10:37 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-12-09 01:10:37 +0000 |
commit | 1750009f38f9e2df7544deb0a60c8c5a238841f3 (patch) | |
tree | a3e2a39d4d75ede21367fd1ff555c78e1612ff30 | |
parent | 34a23ea371c3be0e3f040d7d2497cd42f43b9b4a (diff) | |
download | bcm5719-llvm-1750009f38f9e2df7544deb0a60c8c5a238841f3.tar.gz bcm5719-llvm-1750009f38f9e2df7544deb0a60c8c5a238841f3.zip |
Add const qualifier.
llvm-svn: 90918
-rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAG.h | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h index 0f8c5973c89..fdd34661338 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAG.h +++ b/llvm/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/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 74651c149d5..851e6c040ea 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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; |