Resubmit the changes to llvm core to update the functions to support different pointer sizes on a per address space basis.
llvm-svn: 165941
This commit is contained in:
@@ -550,7 +550,7 @@ unsigned MachineJumpTableInfo::getEntrySize(const DataLayout &TD) const {
|
||||
// address of a block, in which case it is the pointer size.
|
||||
switch (getEntryKind()) {
|
||||
case MachineJumpTableInfo::EK_BlockAddress:
|
||||
return TD.getPointerSize();
|
||||
return TD.getPointerSize(0);
|
||||
case MachineJumpTableInfo::EK_GPRel64BlockAddress:
|
||||
return 8;
|
||||
case MachineJumpTableInfo::EK_GPRel32BlockAddress:
|
||||
@@ -570,7 +570,7 @@ unsigned MachineJumpTableInfo::getEntryAlignment(const DataLayout &TD) const {
|
||||
// alignment.
|
||||
switch (getEntryKind()) {
|
||||
case MachineJumpTableInfo::EK_BlockAddress:
|
||||
return TD.getPointerABIAlignment();
|
||||
return TD.getPointerABIAlignment(0);
|
||||
case MachineJumpTableInfo::EK_GPRel64BlockAddress:
|
||||
return TD.getABIIntegerTypeAlignment(64);
|
||||
case MachineJumpTableInfo::EK_GPRel32BlockAddress:
|
||||
|
||||
Reference in New Issue
Block a user