Lines 1170-1176
Link Here
|
1170 |
Elements.push_back(llvm::ConstantInt::get(LongTy, RuntimeVersion)); |
1170 |
Elements.push_back(llvm::ConstantInt::get(LongTy, RuntimeVersion)); |
1171 |
} |
1171 |
} |
1172 |
// sizeof(ModuleTy) |
1172 |
// sizeof(ModuleTy) |
1173 |
llvm::TargetData td = llvm::TargetData::TargetData(&TheModule); |
1173 |
llvm::TargetData td = llvm::TargetData(&TheModule); |
1174 |
Elements.push_back(llvm::ConstantInt::get(LongTy, |
1174 |
Elements.push_back(llvm::ConstantInt::get(LongTy, |
1175 |
td.getTypeSizeInBits(ModuleTy)/8)); |
1175 |
td.getTypeSizeInBits(ModuleTy)/8)); |
1176 |
//FIXME: Should be the path to the file where this module was declared |
1176 |
//FIXME: Should be the path to the file where this module was declared |
Lines 1320-1326
Link Here
|
1320 |
CGF.EmitBlock(TryHandler); |
1320 |
CGF.EmitBlock(TryHandler); |
1321 |
|
1321 |
|
1322 |
// Get the correct versions of the exception handling intrinsics |
1322 |
// Get the correct versions of the exception handling intrinsics |
1323 |
llvm::TargetData td = llvm::TargetData::TargetData(&TheModule); |
1323 |
llvm::TargetData td = llvm::TargetData(&TheModule); |
1324 |
int PointerWidth = td.getTypeSizeInBits(PtrTy); |
1324 |
int PointerWidth = td.getTypeSizeInBits(PtrTy); |
1325 |
assert((PointerWidth == 32 || PointerWidth == 64) && |
1325 |
assert((PointerWidth == 32 || PointerWidth == 64) && |
1326 |
"Can't yet handle exceptions if pointers are not 32 or 64 bits"); |
1326 |
"Can't yet handle exceptions if pointers are not 32 or 64 bits"); |