[llvm] r207157 - Function defined in a header should be inline. Found by modules build.

Richard Smith richard-llvm at metafoo.co.uk
Thu Apr 24 16:14:33 PDT 2014


Author: rsmith
Date: Thu Apr 24 18:14:32 2014
New Revision: 207157

URL: http://llvm.org/viewvc/llvm-project?rev=207157&view=rev
Log:
Function defined in a header should be inline. Found by modules build.

Modified:
    llvm/trunk/include/llvm/CodeGen/PBQP/RegAllocSolver.h

Modified: llvm/trunk/include/llvm/CodeGen/PBQP/RegAllocSolver.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/PBQP/RegAllocSolver.h?rev=207157&r1=207156&r2=207157&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/PBQP/RegAllocSolver.h (original)
+++ llvm/trunk/include/llvm/CodeGen/PBQP/RegAllocSolver.h Thu Apr 24 18:14:32 2014
@@ -346,7 +346,7 @@ namespace PBQP {
 
     typedef Graph<RegAllocSolverImpl> Graph;
 
-    Solution solve(Graph& G) {
+    inline Solution solve(Graph& G) {
       if (G.empty())
         return Solution();
       RegAllocSolverImpl RegAllocSolver(G);





More information about the llvm-commits mailing list