[LLVMdev] Hi, people, I propose to move Debug and Object File related headers out of Support

Ahmed Bougacha ahmed.bougacha at gmail.com
Fri Jul 5 09:17:03 PDT 2013


On Thu, Jul 4, 2013 at 10:21 PM, Charles Davis <cdavis5x at gmail.com> wrote:

>
> On Jul 4, 2013, at 10:22 PM, 罗勇刚(Yonggang Luo) wrote:
>
>
> 在 2013-7-4 下午8:53,"Charles Davis" <cdavis5x at gmail.com>写道:
> >
> >
> > On Jul 4, 2013, at 1:43 AM, 罗勇刚(Yonggang Luo) wrote:
> >
> > > LLVM is a modularized software system, so I hope it's was modularized,
> > > And ELF.h is definitely belongs to Object by classification,
> > > The things that confused me is the ELF.h was placed under Support and
> > > don't know why.
> > Because it's also used by the MC layer's direct object emission support.
> thanks for your response, did MC layer's direct object emission depends on
> Object library?
>
> Nope. The Object library only reads object files. MC, on the other hand,
> only writes object files.
>

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.

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.

-- Ahmed Bougacha


> Chip
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130705/edb10fab/attachment.html>


More information about the llvm-dev mailing list