mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 19:06:02 +03:00
Add changes for LLVM 3.2
- The Attributes class was changed again - TargetData was renamed to DataLayout Compiles again with LLVm 3.0, 3.1 and trunk(3.2).
This commit is contained in:
parent
d523be3010
commit
a7c7b514c0
23 changed files with 267 additions and 29 deletions
|
@ -558,7 +558,7 @@ static LLConstant* build_offti_entry(ClassDeclaration* cd, VarDeclaration* vd)
|
|||
//
|
||||
assert(vd->ir.irField);
|
||||
// grab the offset from llvm and the formal class type
|
||||
size_t offset = gTargetData->getStructLayout(isaStruct(cd->type->ir.type->get()))->getElementOffset(vd->ir.irField->index);
|
||||
size_t offset = gDataLayout->getStructLayout(isaStruct(cd->type->ir.type->get()))->getElementOffset(vd->ir.irField->index);
|
||||
// offset nested struct/union fields
|
||||
offset += vd->ir.irField->unionOffset;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue