summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/DAGISelMatcher.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-17 01:27:29 +0000
committerChris Lattner <sabre@nondot.org>2010-02-17 01:27:29 +0000
commitac27c2e3f3cd2527bf50fd114ebc3387d36f678a (patch)
treefa634c0f5b9e8be26cd1156f6128996b3748a9d2 /llvm/utils/TableGen/DAGISelMatcher.h
parent84a85fcb91f4881011c734d767932b631321a3b6 (diff)
downloadbcm5719-llvm-ac27c2e3f3cd2527bf50fd114ebc3387d36f678a.tar.gz
bcm5719-llvm-ac27c2e3f3cd2527bf50fd114ebc3387d36f678a.zip
prefix captured value names with $ so they look like
variables. Use the fancy OpNo variable instead of i, which has the right index including chains. llvm-svn: 96436
Diffstat (limited to 'llvm/utils/TableGen/DAGISelMatcher.h')
-rw-r--r--llvm/utils/TableGen/DAGISelMatcher.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/DAGISelMatcher.h b/llvm/utils/TableGen/DAGISelMatcher.h
index e20a00ee313..53cf923e703 100644
--- a/llvm/utils/TableGen/DAGISelMatcher.h
+++ b/llvm/utils/TableGen/DAGISelMatcher.h
@@ -131,10 +131,10 @@ class RecordMatcherNode : public MatcherNodeWithChild {
/// should only be used for comment generation not anything semantic.
std::string WhatFor;
public:
- RecordMatcherNode(StringRef whatfor)
+ RecordMatcherNode(const std::string &whatfor)
: MatcherNodeWithChild(Record), WhatFor(whatfor) {}
- StringRef getWhatFor() const { return WhatFor; }
+ const std::string &getWhatFor() const { return WhatFor; }
static inline bool classof(const MatcherNode *N) {
return N->getKind() == Record;
OpenPOWER on IntegriCloud