mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
MC/Mach-O/ARM: Recognize generic _Data_N fixup kinds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122408 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
294e67861c
commit
3664564395
@ -846,10 +846,26 @@ public:
|
||||
|
||||
static bool getARMFixupKindMachOInfo(unsigned Kind, bool &Is24BitBranch,
|
||||
unsigned &Log2Size) {
|
||||
Is24BitBranch = false;
|
||||
Log2Size = ~0U;
|
||||
|
||||
switch (Kind) {
|
||||
default:
|
||||
return false;
|
||||
|
||||
case FK_Data_1:
|
||||
Log2Size = llvm::Log2_32(1);
|
||||
return true;
|
||||
case FK_Data_2:
|
||||
Log2Size = llvm::Log2_32(2);
|
||||
return true;
|
||||
case FK_Data_4:
|
||||
Log2Size = llvm::Log2_32(4);
|
||||
return true;
|
||||
case FK_Data_8:
|
||||
Log2Size = llvm::Log2_32(8);
|
||||
return true;
|
||||
|
||||
// Handle 24-bit branch kinds.
|
||||
case ARM::fixup_arm_ldst_pcrel_12:
|
||||
case ARM::fixup_arm_pcrel_10:
|
||||
|
Loading…
x
Reference in New Issue
Block a user