[llvm-commits] [llvm] r119978 - /llvm/trunk/lib/MC/ELFObjectWriter.cpp

Rafael Espíndola rafael.espindola at gmail.com
Mon Nov 22 13:02:10 PST 2010


> +      ELFRelocationEntry(uint64_t RelocOffset, int _Index,
> +                         unsigned _Type, const MCSymbol *_Symbol,
> +                         uint64_t Addend)
> +        : r_offset(RelocOffset), Index(_Index), Type(_Type),
> +          Symbol(_Symbol), r_addend(Addend) {}

Please don't use names starting with _. I know similar names exist
elsewhere, but names starting with _ are reserved.

> +  if (! HasRelocationAddend) Addend = 0;
> +  ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend);

No space after the !


> +  if (! HasRelocationAddend) Addend = 0;
> +  ELFRelocationEntry ERE(RelocOffset, Index, Type, RelocSymbol, Addend);

Same.

Thanks,
Rafael




More information about the llvm-commits mailing list