[llvm] r323487 - Fix buildfailure by making some MIPatternMatchers inline

Aditya Nandakumar via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 25 16:50:56 PST 2018


Author: aditya_nandakumar
Date: Thu Jan 25 16:50:56 2018
New Revision: 323487

URL: http://llvm.org/viewvc/llvm-project?rev=323487&view=rev
Log:
Fix buildfailure by making some MIPatternMatchers inline

Modified:
    llvm/trunk/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h

Modified: llvm/trunk/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h?rev=323487&r1=323486&r2=323487&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h Thu Jan 25 16:50:56 2018
@@ -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 {




More information about the llvm-commits mailing list