OSDN Git Service

Fix buildfailure by making some MIPatternMatchers inline
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Fri, 26 Jan 2018 00:50:56 +0000 (00:50 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Fri, 26 Jan 2018 00:50:56 +0000 (00:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323487 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/GlobalISel/MIPatternMatch.h

index 4093d8a..b877ea7 100644 (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.
 // 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 {