summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-14 22:33:49 +0000
committerChris Lattner <sabre@nondot.org>2010-02-14 22:33:49 +0000
commit450d50467c752113ac373d5d2f3b495c14044721 (patch)
tree35cbf5c3feb4ca18537e6b78134c00a2f7d07f3f /llvm/utils/TableGen/CodeGenDAGPatterns.cpp
parent53c39ba3c1e5ced6d4204b17c7d6d5e547d7a884 (diff)
downloadbcm5719-llvm-450d50467c752113ac373d5d2f3b495c14044721.tar.gz
bcm5719-llvm-450d50467c752113ac373d5d2f3b495c14044721.zip
constize
llvm-svn: 96199
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenDAGPatterns.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
index 3d29f64eaef..94d353491c9 100644
--- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -848,7 +848,7 @@ TreePatternNode::getComplexPatternInfo(const CodeGenDAGPatterns &CGP) const {
/// NodeHasProperty - Return true if this node has the specified property.
bool TreePatternNode::NodeHasProperty(SDNP Property,
- CodeGenDAGPatterns &CGP) const {
+ const CodeGenDAGPatterns &CGP) const {
if (isLeaf()) {
if (const ComplexPattern *CP = getComplexPatternInfo(CGP))
return CP->hasProperty(Property);
@@ -867,7 +867,7 @@ bool TreePatternNode::NodeHasProperty(SDNP Property,
/// TreeHasProperty - Return true if any node in this tree has the specified
/// property.
bool TreePatternNode::TreeHasProperty(SDNP Property,
- CodeGenDAGPatterns &CGP) const {
+ const CodeGenDAGPatterns &CGP) const {
if (NodeHasProperty(Property, CGP))
return true;
for (unsigned i = 0, e = getNumChildren(); i != e; ++i)
OpenPOWER on IntegriCloud