[llvm-commits] [PATCH 1/5] Some ELF sections contain fixed-sized entries. Provide a way to record the entry size of a section.

Eli Friedman eli.friedman at gmail.com
Mon Jul 26 13:43:42 PDT 2010


On Mon, Jul 26, 2010 at 1:00 PM, Matt Fleming <matt at console-pimps.org> wrote:
> ---
>  include/llvm/MC/MCAssembler.h |    8 ++++++++
>  lib/MC/MCAssembler.cpp        |    1 +
>  2 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
> index 97ab1a1..51f265d 100644
> --- a/include/llvm/MC/MCAssembler.h
> +++ b/include/llvm/MC/MCAssembler.h
> @@ -366,6 +366,11 @@ private:
>   /// Alignment - The maximum alignment seen in this section.
>   unsigned Alignment;
>
> +  /// EntrySize - The size of each entry in this section. This is ~0
> +  /// until initialized. This size only makes sense for sections that
> +  /// contain fixed-sized entries.
> +  unsigned EntrySize;

I'm not sure this is the right place for this... I'm pretty sure
getStubSize() is roughly the equivalent on Darwin, and it's in
MCSectionMacho.

-Eli




More information about the llvm-commits mailing list