[cfe-users] DWARF bit field offset wrong values in LLVM

2019-07-01 Thread Trevor Harrison via cfe-users
I'm trying to extract information about bitfields in a structure using DWARF info. The info generated by LLVM seems to be incorrect and not following the DWARF standard. If this isn't the right mailing list, please let me know. If you look at DwarfUnit.cpp in the current LLVM src, it is using DI

Re: [cfe-users] DWARF bit field offset wrong values in LLVM

2019-07-01 Thread Trevor Harrison via cfe-users
Yeah, ignore my ramblings. LLVM is fine, I was visually confusing the pre-dwarf4 bit_offset attribute value with new hotness of data_bit_offset. Thanks Matthew for the cfe-dev suggestion. On Mon, Jul 1, 2019 at 12:17 PM Trevor Harrison wrote: > I'm trying to extract information about bitfields