[llvm-commits] [PATCH] Support/ELF.h extensions
Stephen Wilson
wilsons at start.ca
Mon Jul 12 09:46:21 PDT 2010
Hi Chris,
Chris Lattner <clattner at apple.com> writes:
> A few stylistic updates:
>
> - unsigned char getFileClass () const { return e_ident[4]; }
> - unsigned char getDataEncoding () { return e_ident[5]; }
> + unsigned char getFileClass () const { return e_ident[EI_CLASS]; }
> + unsigned char getDataEncoding () { return e_ident[EI_DATA]; }
>
> Not your doing, but please don't put a space before argument lists: use getFileClass() instead of getFileClass ()
>
> Likewise here:
>
> Elf64_Quarter e_shstrndx;
> + bool checkMagic () const {
> + return (memcmp (e_ident, ElfMagic, strlen (ElfMagic))) == 0;
> + }
> + unsigned char getFileClass () const { return e_ident[EI_CLASS]; }
> + unsigned char getDataEncoding () { return e_ident[EI_DATA]; }
>
OK. There are a few additional places in the file that require this
format fix as well. Will apply.
> and in Elf64_Sym. Do you have commit access? If so, please commit
> with these tweaks. If not, please read the DeveloperPolicy.html
> document and send me the requested info (offline).
No, I do not have commit access. Details sent.
>
> Thanks Stephen!
>
> -Chris
Thank you!
Steve
More information about the llvm-commits
mailing list