<div dir="ltr">You can just skip the 'inline' keyword on a function template - it'll have the same linkage anyway.</div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 1, 2016 at 5:26 PM Rui Ueyama via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: ruiu<br class="gmail_msg">
Date: Tue Nov  1 19:16:43 2016<br class="gmail_msg">
New Revision: 285775<br class="gmail_msg">
<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=285775&view=rev" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project?rev=285775&view=rev</a><br class="gmail_msg">
Log:<br class="gmail_msg">
Make a function in a header "inline" instead of "static".<br class="gmail_msg">
<br class="gmail_msg">
Modified:<br class="gmail_msg">
    lld/trunk/ELF/Memory.h<br class="gmail_msg">
<br class="gmail_msg">
Modified: lld/trunk/ELF/Memory.h<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Memory.h?rev=285775&r1=285774&r2=285775&view=diff" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Memory.h?rev=285775&r1=285774&r2=285775&view=diff</a><br class="gmail_msg">
==============================================================================<br class="gmail_msg">
--- lld/trunk/ELF/Memory.h (original)<br class="gmail_msg">
+++ lld/trunk/ELF/Memory.h Tue Nov  1 19:16:43 2016<br class="gmail_msg">
@@ -49,7 +49,7 @@ template <class T> struct SpecificAlloc<br class="gmail_msg">
<br class="gmail_msg">
 // Use this arean if your object have a destructor.<br class="gmail_msg">
 // Your destructor will be invoked from freeArena().<br class="gmail_msg">
-template <typename T, typename... U> static T *make(U &&... Args) {<br class="gmail_msg">
+template <typename T, typename... U> inline T *make(U &&... Args) {<br class="gmail_msg">
   static SpecificAlloc<T> Alloc;<br class="gmail_msg">
   return new (Alloc.Alloc.Allocate()) T(std::forward<U>(Args)...);<br class="gmail_msg">
 }<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
llvm-commits mailing list<br class="gmail_msg">
<a href="mailto:llvm-commits@lists.llvm.org" class="gmail_msg" target="_blank">llvm-commits@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class="gmail_msg">
</blockquote></div>