[llvm-commits] [llvm-gcc-4.2] r53572 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Duncan Sands baldrick at free.fr
Tue Jul 15 00:39:33 PDT 2008


Hi Dale,

> +    // For ObjC2, we may have a base class field that should not be taken into
> +    // account here, as it is already in Offset.  The ObjC FE figures this out.
> +    tree field_bit_offset = objc_v2_bitfield_ivar_bitpos(exp);
> +    if (field_bit_offset) {
> +      BitStart = (unsigned)getINTEGER_CSTVal(field_bit_offset);
> +    }
>      // Here BitStart gives the offset of the field in bits from field_offset.
>      // Incorporate as much of it as possible into the pointer computation.
>      unsigned ByteOffset = BitStart/8;

I didn't understand from your description what is going on here.  Can you
please explain some more.

Thanks,

Duncan.



More information about the llvm-commits mailing list