diff options
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.h')
| -rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h index 02c07b11d9b..2b434261680 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.h +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h @@ -452,8 +452,8 @@ public: /// getImmediatePredicateCode - Return the code that evaluates this pattern if /// this is an immediate predicate. It is an error to call this on a /// non-immediate pattern. - StringRef getImmediatePredicateCode() const { - StringRef Result = getImmCode(); + std::string getImmediatePredicateCode() const { + std::string Result = getImmCode(); assert(!Result.empty() && "Isn't an immediate pattern!"); return Result; } @@ -476,8 +476,8 @@ public: std::string getCodeToRunOnSDNode() const; private: - StringRef getPredCode() const; - StringRef getImmCode() const; + std::string getPredCode() const; + std::string getImmCode() const; }; @@ -995,7 +995,7 @@ public: const CodeGenTarget &getTargetInfo() const { return Target; } const TypeSetByHwMode &getLegalTypes() const { return LegalVTS; } - Record *getSDNodeNamed(StringRef Name) const; + Record *getSDNodeNamed(const std::string &Name) const; const SDNodeInfo &getSDNodeInfo(Record *R) const { auto F = SDNodes.find(R); |

