[llvm-commits] [llvm] r120534 - in /llvm/trunk: lib/MC/ELFObjectWriter.cpp lib/Target/ARM/ARMAsmBackend.cpp test/CodeGen/ARM/2010-11-30-reloc-movt.ll

Jason Kim jasonwkim at google.com
Tue Nov 30 19:29:23 PST 2010


On Tue, Nov 30, 2010 at 7:17 PM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
>>> It was a global static function before. Why can't you use it as such?
>>
>> It seemed like a better choice to move it to a canonical place for
>> explicitly sharing between subclasses - that function was too close in
>> the namespace tied to darwin.
>
> Can you not just move it before both the Macho and ELF classes? I
> don't see anything explicit about it in the coding standards, but the
> example in "Anonymous Namespaces" seems to suggest that using a static
> global helper would be better.

Yes, that could be ok too, but that function will get larger as more
relocations are added -
helpers are usually considered to be "small", right?

Honestly, I think its fine where it is, but if you really think it''s
better to be outside the class, I'll move it out.

Thanks!
-jason

> Cheers,
> Rafael
>




More information about the llvm-commits mailing list