summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAditya Nandakumar <aditya_nandakumar@apple.com>2018-01-26 00:50:56 +0000
committerAditya Nandakumar <aditya_nandakumar@apple.com>2018-01-26 00:50:56 +0000
commitdb8d709c5aa12df366c0edb6188cab44b2a06bf4 (patch)
tree22881df55a6cd7e771d956508a4e2d6ed9cb19ec
parent82d61211b242b12ee42ea8c6337723bd9728a02d (diff)
downloadbcm5719-llvm-db8d709c5aa12df366c0edb6188cab44b2a06bf4.tar.gz
bcm5719-llvm-db8d709c5aa12df366c0edb6188cab44b2a06bf4.zip
Fix buildfailure by making some MIPatternMatchers inline
llvm-svn: 323487
-rw-r--r--llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h b/llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
index 4093d8a16fb..b877ea773ac 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
@@ -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.
// 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.
template <typename... Preds> struct And {
OpenPOWER on IntegriCloud