diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-17 01:27:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-17 01:27:29 +0000 |
commit | c642b84fb866c3a6f1e61d39d6eda89563267b53 (patch) | |
tree | f89b22670abe14f9e9671c203d8050c25af8b74f /utils/TableGen/DAGISelMatcher.h | |
parent | e74c3bae3aa6ea5add53afed4181d4da5a7eee18 (diff) | |
download | external_llvm-c642b84fb866c3a6f1e61d39d6eda89563267b53.zip external_llvm-c642b84fb866c3a6f1e61d39d6eda89563267b53.tar.gz external_llvm-c642b84fb866c3a6f1e61d39d6eda89563267b53.tar.bz2 |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/DAGISelMatcher.h b/utils/TableGen/DAGISelMatcher.h index e20a00e..53cf923 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; |