mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Add a new jump table encoding to indicate jump tables entries
are inside the function by the target at the point of use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98255 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -574,6 +574,8 @@ unsigned MachineJumpTableInfo::getEntrySize(const TargetData &TD) const {
|
||||
case MachineJumpTableInfo::EK_LabelDifference32:
|
||||
case MachineJumpTableInfo::EK_Custom32:
|
||||
return 4;
|
||||
case MachineJumpTableInfo::EK_Inline:
|
||||
return 0;
|
||||
}
|
||||
assert(0 && "Unknown jump table encoding!");
|
||||
return ~0;
|
||||
@ -591,6 +593,8 @@ unsigned MachineJumpTableInfo::getEntryAlignment(const TargetData &TD) const {
|
||||
case MachineJumpTableInfo::EK_LabelDifference32:
|
||||
case MachineJumpTableInfo::EK_Custom32:
|
||||
return TD.getABIIntegerTypeAlignment(32);
|
||||
case MachineJumpTableInfo::EK_Inline:
|
||||
return 1;
|
||||
}
|
||||
assert(0 && "Unknown jump table encoding!");
|
||||
return ~0;
|
||||
|
Reference in New Issue
Block a user