From 751d5aa1eadf041f00acf76f3b641549c8be3998 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 14 Feb 2010 22:33:49 +0000 Subject: [PATCH] constize git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96199 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/CodeGenDAGPatterns.cpp | 4 ++-- utils/TableGen/CodeGenDAGPatterns.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index 3d29f64eaef..94d353491c9 100644 --- a/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/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) diff --git a/utils/TableGen/CodeGenDAGPatterns.h b/utils/TableGen/CodeGenDAGPatterns.h index 887220e54e1..5eef9e1ddc6 100644 --- a/utils/TableGen/CodeGenDAGPatterns.h +++ b/utils/TableGen/CodeGenDAGPatterns.h @@ -243,11 +243,11 @@ public: getComplexPatternInfo(const CodeGenDAGPatterns &CGP) const; /// NodeHasProperty - Return true if this node has the specified property. - bool NodeHasProperty(SDNP Property, CodeGenDAGPatterns &CGP) const; + bool NodeHasProperty(SDNP Property, const CodeGenDAGPatterns &CGP) const; /// TreeHasProperty - Return true if any node in this tree has the specified /// property. - bool TreeHasProperty(SDNP Property, CodeGenDAGPatterns &CGP) const; + bool TreeHasProperty(SDNP Property, const CodeGenDAGPatterns &CGP) const; /// isCommutativeIntrinsic - Return true if the node is an intrinsic which is /// marked isCommutative.