<div dir="ltr"><div>We shouldn't expose the module here because we will eventually want this class to wrap the bitcode symbol table rather than the module.</div><div><br></div><div>Is there something more minimal you can expose here to achieve the same goal?<br></div><div><br></div><div>Peter</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 12, 2016 at 7:22 PM, Davide Italiano via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: davide<br>
Date: Mon Sep 12 21:22:02 2016<br>
New Revision: 281289<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=281289&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=281289&view=rev</a><br>
Log:<br>
[lib/LTO] Expose getModule() in lto::InputFile.<br>
<br>
lld will use this to get the datalayout string and emit a<br>
diagnostic if empty.<br>
<br>
Modified:<br>
    llvm/trunk/include/llvm/LTO/<wbr>LTO.h<br>
<br>
Modified: llvm/trunk/include/llvm/LTO/<wbr>LTO.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/LTO/LTO.h?rev=281289&r1=281288&r2=281289&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/include/<wbr>llvm/LTO/LTO.h?rev=281289&r1=<wbr>281288&r2=281289&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/include/llvm/LTO/<wbr>LTO.h (original)<br>
+++ llvm/trunk/include/llvm/LTO/<wbr>LTO.h Mon Sep 12 21:22:02 2016<br>
@@ -234,6 +234,10 @@ public:<br>
   MemoryBufferRef getMemoryBufferRef() const {<br>
     return Obj->getMemoryBufferRef();<br>
   }<br>
+<br>
+  Module &getModule() const {<br>
+    return Obj->getModule();<br>
+  }<br>
 };<br>
<br>
 /// A ThinBackend defines what happens after the thin-link phase during ThinLTO.<br>
<br>
<br>
______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-- <div>Peter</div></div></div>
</div>