Hi Bill,

> +    // Determine endianness of host machine.
> +    union {
> +      int x;
> +      char y[sizeof(int)];
> +    } u;
> +    u.x = 1;
> +    bool BigEndian = (u.y[0] != 1);

how about using bigEndianHost in System/Host.h instead?

Ciao,

Duncan.
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to