mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 14:36:34 +00:00
Jump table relocation addresses may be resolved by target.
llvm-svn: 58834
This commit is contained in:
parent
828731190c
commit
7f68765615
@ -175,7 +175,8 @@ public:
|
||||
/// table entry.
|
||||
///
|
||||
static MachineRelocation getJumpTable(intptr_t offset,unsigned RelocationType,
|
||||
unsigned JTI, intptr_t cst = 0) {
|
||||
unsigned JTI, intptr_t cst = 0,
|
||||
bool letTargetResolve = false) {
|
||||
assert((RelocationType & ~63) == 0 && "Relocation type too large!");
|
||||
MachineRelocation Result;
|
||||
Result.Offset = offset;
|
||||
@ -184,7 +185,7 @@ public:
|
||||
Result.AddrType = isJumpTable;
|
||||
Result.NeedStub = false;
|
||||
Result.GOTRelative = false;
|
||||
Result.TargetResolve = false;
|
||||
Result.TargetResolve = letTargetResolve;
|
||||
Result.Target.Index = JTI;
|
||||
return Result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user