mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Resubmit the changes to llvm core to update the functions to support different pointer sizes on a per address space basis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -56,13 +56,21 @@ LLVMByteOrdering LLVMByteOrder(LLVMTargetDataRef TD) {
|
||||
}
|
||||
|
||||
unsigned LLVMPointerSize(LLVMTargetDataRef TD) {
|
||||
return unwrap(TD)->getPointerSize();
|
||||
return unwrap(TD)->getPointerSize(0);
|
||||
}
|
||||
|
||||
unsigned LLVMPointerSizeForAS(LLVMTargetDataRef TD, unsigned AS) {
|
||||
return unwrap(TD)->getPointerSize(AS);
|
||||
}
|
||||
|
||||
LLVMTypeRef LLVMIntPtrType(LLVMTargetDataRef TD) {
|
||||
return wrap(unwrap(TD)->getIntPtrType(getGlobalContext()));
|
||||
}
|
||||
|
||||
LLVMTypeRef LLVMIntPtrTypeForAS(LLVMTargetDataRef TD, unsigned AS) {
|
||||
return wrap(unwrap(TD)->getIntPtrType(getGlobalContext(), AS));
|
||||
}
|
||||
|
||||
unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty) {
|
||||
return unwrap(TD)->getTypeSizeInBits(unwrap(Ty));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user