Fix buildfailure by making some MIPatternMatchers inline

llvm-svn: 323487
This commit is contained in:
Aditya Nandakumar 2018-01-26 00:50:56 +00:00
parent 82d61211b2
commit db8d709c5a
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ struct ConstantMatch {
} }
}; };
ConstantMatch m_ICst(uint64_t &Cst) { return ConstantMatch(Cst); } inline ConstantMatch m_ICst(uint64_t &Cst) { return ConstantMatch(Cst); }
// TODO: Rework this for different kinds of MachineOperand. // TODO: Rework this for different kinds of MachineOperand.
// Currently assumes the Src for a match is a register. // Currently assumes the Src for a match is a register.
@ -68,7 +68,7 @@ struct operand_type_match {
} }
}; };
operand_type_match m_Reg() { return operand_type_match(); } inline operand_type_match m_Reg() { return operand_type_match(); }
/// Matching combinators. /// Matching combinators.
template <typename... Preds> struct And { template <typename... Preds> struct And {