[llvm-commits] [PATCH][GNU Build] Add LLVM_IS_TARGET_BIG_ENDIAN to config.h

Michael Spencer bigcheesegs at gmail.com
Thu Oct 21 18:59:44 PDT 2010


On Thu, Oct 21, 2010 at 7:01 PM, Dale Johannesen <dalej at apple.com> wrote:
> I may have missed earlier discussion, but why do you want this at compile time?  Normally llvm is built to support multiple targets (not necessarily all of the same endianness) and endianness is checked at runtime; see TargetData.

This is for the host target. It is used when working with endian
dependent data such as object files.

- Michael Spencer

> On Oct 21, 2010, at 3:51 PMPDT, Michael Spencer wrote:
>
>> This is my first time ever touching GNU Build, but I think this does
>> what I want. Can someone verify it, fix it if wrong, and regenerate
>> configure?
>>
>> Thanks,
>>
>> - Michael Spencer




More information about the llvm-commits mailing list