[TableGen] Take a parameter by reference instead of pointer so we don't have to add & on both callers. NFC
llvm-svn: 305807
This commit is contained in:
parent
e8a8e6a6b1
commit
2a053a9f9d
|
@ -2762,8 +2762,8 @@ public:
|
||||||
AnalyzeNode(Pat->getTree(0));
|
AnalyzeNode(Pat->getTree(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Analyze(const PatternToMatch *Pat) {
|
void Analyze(const PatternToMatch &Pat) {
|
||||||
AnalyzeNode(Pat->getSrcPattern());
|
AnalyzeNode(Pat.getSrcPattern());
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -3305,7 +3305,7 @@ void CodeGenDAGPatterns::InferInstructionFlags() {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
InstAnalyzer PatInfo(*this);
|
InstAnalyzer PatInfo(*this);
|
||||||
PatInfo.Analyze(&PTM);
|
PatInfo.Analyze(PTM);
|
||||||
Errors += InferFromPattern(InstInfo, PatInfo, PTM.getSrcRecord());
|
Errors += InferFromPattern(InstInfo, PatInfo, PTM.getSrcRecord());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3365,7 +3365,7 @@ void CodeGenDAGPatterns::VerifyInstructionFlags() {
|
||||||
|
|
||||||
// Analyze the source pattern.
|
// Analyze the source pattern.
|
||||||
InstAnalyzer PatInfo(*this);
|
InstAnalyzer PatInfo(*this);
|
||||||
PatInfo.Analyze(&PTM);
|
PatInfo.Analyze(PTM);
|
||||||
|
|
||||||
// Collect error messages.
|
// Collect error messages.
|
||||||
SmallVector<std::string, 4> Msgs;
|
SmallVector<std::string, 4> Msgs;
|
||||||
|
|
Loading…
Reference in New Issue