summaryrefslogtreecommitdiff
path: root/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
commitc642b84fb866c3a6f1e61d39d6eda89563267b53 (patch)
treef89b22670abe14f9e9671c203d8050c25af8b74f /utils/TableGen/DAGISelMatcher.h
parente74c3bae3aa6ea5add53afed4181d4da5a7eee18 (diff)
downloadllvm-c642b84fb866c3a6f1e61d39d6eda89563267b53.tar.gz
llvm-c642b84fb866c3a6f1e61d39d6eda89563267b53.tar.bz2
llvm-c642b84fb866c3a6f1e61d39d6eda89563267b53.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcher.h')
-rw-r--r--utils/TableGen/DAGISelMatcher.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/DAGISelMatcher.h b/utils/TableGen/DAGISelMatcher.h
index e20a00ee31..53cf923e70 100644
--- a/utils/TableGen/DAGISelMatcher.h
+++ b/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;