<div dir="ltr">On Thu, Jul 4, 2013 at 10:21 PM, Charles Davis <span dir="ltr"><<a href="mailto:cdavis5x@gmail.com" target="_blank">cdavis5x@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div><div class="h5">

<div>On Jul 4, 2013, at 10:22 PM, ÂÞÓ¸Õ(Yonggang Luo) wrote:</div><br><blockquote type="cite"><p dir="ltr"><br>
ÔÚ 2013-7-4 ÏÂÎç8:53£¬"Charles Davis" <<a href="mailto:cdavis5x@gmail.com" target="_blank">cdavis5x@gmail.com</a>>дµÀ£º<br>
><br>
><br>
> On Jul 4, 2013, at 1:43 AM, ÂÞÓ¸Õ(Yonggang Luo) wrote:<br>
><br>
> > LLVM is a modularized software system, so I hope it's was modularized,<br>
> > And ELF.h is definitely belongs to Object by classification,<br>
> > The things that confused me is the ELF.h was placed under Support and<br>
> > don't know why.<br>
> Because it's also used by the MC layer's direct object emission support.<br>
thanks for your response, did MC layer's direct object emission depends on Object library?<br></p></blockquote></div></div>Nope. The Object library only reads object files. MC, on the other hand, only writes object files.</div>

</div></blockquote><div><br></div><div>That’s true for object emission, but MC already depends on libObject, and at least some of the more experimental parts of MC actually use it to read files.</div><div><br></div><div>
However, - I believe nobody mentioned this - I think the point of having ELF.h and friends in Support is that they’re intended to (more or less exactly) match the headers provided by the system. Most of what’s there is duplicated in a friendlier form (for ObjectFile-related stuff), or just to match the LLVM style (notably Object/MachOFormat.h) in Object.</div>

<div><br></div><div><div>-- Ahmed Bougacha</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div style="word-wrap:break-word"><div>Chip<br></div><br></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div></div>