From: Richard Smith Date: Thu, 24 Apr 2014 23:14:32 +0000 (+0000) Subject: Function defined in a header should be inline. Found by modules build. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=12da0f2bcda246e45608b1736059e270cc25c557;p=oota-llvm.git Function defined in a header should be inline. Found by modules build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207157 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/PBQP/RegAllocSolver.h b/include/llvm/CodeGen/PBQP/RegAllocSolver.h index 4700a8b6230..977c34843bb 100644 --- a/include/llvm/CodeGen/PBQP/RegAllocSolver.h +++ b/include/llvm/CodeGen/PBQP/RegAllocSolver.h @@ -346,7 +346,7 @@ namespace PBQP { typedef Graph Graph; - Solution solve(Graph& G) { + inline Solution solve(Graph& G) { if (G.empty()) return Solution(); RegAllocSolverImpl RegAllocSolver(G);