<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Jul 12, 2016 at 1:58 AM George Rimar 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: grimar<br>
Date: Tue Jul 12 03:50:42 2016<br>
New Revision: 275162<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=275162&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=275162&view=rev</a><br>
Log:<br>
[ELF] - Make few members of Writer to be global and export them for reuse<br>
<br>
Creating sections on linkerscript side requires some methods<br>
that can be reused if are exported from writer.<br>
<br>
Patch implements that change.<br>
<br>
Differential revision: <a href="http://reviews.llvm.org/D20104" rel="noreferrer" target="_blank">http://reviews.llvm.org/D20104</a></blockquote><div><br></div><div>Please be very careful in the future when putting templates into a header file and not their definitions....</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+<br>
+template <class ELFT><br>
+llvm::StringRef getOutputSectionName(InputSectionBase<ELFT> *S);<br></blockquote><div><br></div><div>There were no explicit template instantiations for this function, they had to be added in r<span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px;line-height:1.5">276133 to fix a build bot that was broken for days. Sadly, this in turn exposed...</span></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+<br>
+template <class ELFT><br>
+void reportDiscarded(InputSectionBase<ELFT> *IS,<br>
+                     const std::unique_ptr<elf::ObjectFile<ELFT>> &File);<br></blockquote><div><br></div><div>Which also had no explicit instantiations, which I just fixed in r276155....</div></div></div>