diff options
author | Craig Topper <craig.topper@intel.com> | 2017-06-20 16:34:37 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-06-20 16:34:37 +0000 |
commit | 2a053a9f9d5f1f5033e792da622c081ddfbab5b5 (patch) | |
tree | 194d0c0bc6d624c61456978f9e36ca47c5c94df8 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp | |
parent | e8a8e6a6b13e473d7033510957e67df48b989d41 (diff) | |
download | llvm-2a053a9f9d5f1f5033e792da622c081ddfbab5b5.zip llvm-2a053a9f9d5f1f5033e792da622c081ddfbab5b5.tar.gz llvm-2a053a9f9d5f1f5033e792da622c081ddfbab5b5.tar.bz2 |
[TableGen] Take a parameter by reference instead of pointer so we don't have to add & on both callers. NFC
llvm-svn: 305807
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index da9d56e..dcee5c0 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -2762,8 +2762,8 @@ public: AnalyzeNode(Pat->getTree(0)); } - void Analyze(const PatternToMatch *Pat) { - AnalyzeNode(Pat->getSrcPattern()); + void Analyze(const PatternToMatch &Pat) { + AnalyzeNode(Pat.getSrcPattern()); } private: @@ -3305,7 +3305,7 @@ void CodeGenDAGPatterns::InferInstructionFlags() { continue; InstAnalyzer PatInfo(*this); - PatInfo.Analyze(&PTM); + PatInfo.Analyze(PTM); Errors += InferFromPattern(InstInfo, PatInfo, PTM.getSrcRecord()); } @@ -3365,7 +3365,7 @@ void CodeGenDAGPatterns::VerifyInstructionFlags() { // Analyze the source pattern. InstAnalyzer PatInfo(*this); - PatInfo.Analyze(&PTM); + PatInfo.Analyze(PTM); // Collect error messages. SmallVector<std::string, 4> Msgs; |