[LLVMdev] an llvm-gcc bug
Chris Lattner
sabre at nondot.org
Fri Feb 15 11:21:41 PST 2008
On Feb 15, 2008, at 11:17 AM, Devang Patel wrote:
>> Ok! Can you please fix it to index by GCC type? There is a many to
>> one mapping between gcc types and llvm types.
>
> This is tricky and probably won't work. Padding info is in llvm struct
> type and CopyAggregate() is operating on llvm type. There is not any
> way to map llvm type back to gcc type. Am I missing something ?
EmitAggregateCopy has the gcc type. It would be reasonable to have
CopyAggregate walk the GCC type in parallel with the llvm type, at
least in simple cases. In more complex cases, it could give up.
-Chris
More information about the llvm-dev
mailing list