mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-20 04:10:18 +02: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:
+1
-1
@@ -60,7 +60,7 @@ void dwarfOpOffset(T &addr, LLStructType *type, int index)
|
||||
if (!global.params.symdebug)
|
||||
return;
|
||||
|
||||
uint64_t offset = gTargetData->getStructLayout(type)->getElementOffset(index);
|
||||
uint64_t offset = gDataLayout->getStructLayout(type)->getElementOffset(index);
|
||||
LLType *int64Ty = LLType::getInt64Ty(gIR->context());
|
||||
addr.push_back(LLConstantInt::get(int64Ty, llvm::DIBuilder::OpPlus));
|
||||
addr.push_back(LLConstantInt::get(int64Ty, offset));
|
||||
|
||||
Reference in New Issue
Block a user