[llvm-commits] [llvm] r78476 - in /llvm/trunk: include/llvm/CodeGen/BinaryObject.h lib/CodeGen/ELF.h lib/CodeGen/ELFWriter.cpp lib/CodeGen/ELFWriter.h

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Sat Aug 8 10:55:58 PDT 2009


Hi Chris,

> Can you use TargetLoweringObjectFile to make these decisions?  One of the
> next steps I plan for the MCSection stuff is to introduce object-file
> specific subclasses of MCSection.  Since all elf sections are now created by
> TargetLoweringObjectFileELF, we can change it to make an MCSectionELF class,
> which contains the segment name, section flags, etc in an elf specific
> encoding.  The idea is to do this lowering in TLOF and then have the
> asmprinter "pretty print" them, and the object file writer just encode what

Yes, this is a much better design

> is in the section without having to think about it at all.  This also gives
> us a place to add target-specific extensions like the MIPS "small" bit.

Nice

> I plan to do this for Darwin on monday or tuesday, once that piece is in,
> can you do the same for ELF?

Sure :)

-- 
Bruno Cardoso Lopes
http://www.brunocardoso.cc




More information about the llvm-commits mailing list