[llvm] r305807 - [TableGen] Take a parameter by reference instead of pointer so we don't have to add & on both callers. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 20 09:34:37 PDT 2017
Author: ctopper
Date: Tue Jun 20 11:34:37 2017
New Revision: 305807
URL: http://llvm.org/viewvc/llvm-project?rev=305807&view=rev
Log:
[TableGen] Take a parameter by reference instead of pointer so we don't have to add & on both callers. NFC
Modified:
llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp?rev=305807&r1=305806&r2=305807&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Tue Jun 20 11:34:37 2017
@@ -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::InferInstructio
continue;
InstAnalyzer PatInfo(*this);
- PatInfo.Analyze(&PTM);
+ PatInfo.Analyze(PTM);
Errors += InferFromPattern(InstInfo, PatInfo, PTM.getSrcRecord());
}
@@ -3365,7 +3365,7 @@ void CodeGenDAGPatterns::VerifyInstructi
// Analyze the source pattern.
InstAnalyzer PatInfo(*this);
- PatInfo.Analyze(&PTM);
+ PatInfo.Analyze(PTM);
// Collect error messages.
SmallVector<std::string, 4> Msgs;
More information about the llvm-commits
mailing list