Skip to content

Commit

Permalink
[NFC] Remove leftover inline on some RuleMatcher functions
Browse files Browse the repository at this point in the history
Accidentally copy-pasted them into the .cpp while refactoring the file in D151432
Those functions are currently only used in the .cpp so it didn't cause an issue, but it causes an undefined reference if another file attempts to use them.
  • Loading branch information
Pierre-vh committed Jun 23, 2023
1 parent c5ed93f commit fd33821
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/utils/TableGen/GlobalISelMatchTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ void RuleMatcher::definePhysRegOperand(Record *Reg, OperandMatcher &OM) {
}
}

inline InstructionMatcher &
InstructionMatcher &
RuleMatcher::getInstructionMatcher(StringRef SymbolicName) const {
for (const auto &I : InsnVariableIDs)
if (I.first->getSymbolicName() == SymbolicName)
Expand All @@ -801,8 +801,7 @@ RuleMatcher::getInstructionMatcher(StringRef SymbolicName) const {
("Failed to lookup instruction " + SymbolicName).str().c_str());
}

inline const OperandMatcher &
RuleMatcher::getPhysRegOperandMatcher(Record *Reg) const {
const OperandMatcher &RuleMatcher::getPhysRegOperandMatcher(Record *Reg) const {
const auto &I = PhysRegOperands.find(Reg);

if (I == PhysRegOperands.end()) {
Expand Down

0 comments on commit fd33821

Please sign in to comment.