summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-04-24 23:14:32 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-04-24 23:14:32 +0000
commit12da0f2bcda246e45608b1736059e270cc25c557 (patch)
tree8f287596c1c31ac65d7fe1cf8f451f26d6ca6bf3 /include
parent1749b55006758b2b29c422dbbc936fce495dd126 (diff)
downloadllvm-12da0f2bcda246e45608b1736059e270cc25c557.tar.gz
llvm-12da0f2bcda246e45608b1736059e270cc25c557.tar.bz2
llvm-12da0f2bcda246e45608b1736059e270cc25c557.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/PBQP/RegAllocSolver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/PBQP/RegAllocSolver.h b/include/llvm/CodeGen/PBQP/RegAllocSolver.h
index 4700a8b623..977c34843b 100644
--- a/include/llvm/CodeGen/PBQP/RegAllocSolver.h
+++ b/include/llvm/CodeGen/PBQP/RegAllocSolver.h
@@ -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);