mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
MC/Mach-O: Shuffle enums a bit to make it harder to inadvertently use the wrong
type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -317,17 +317,24 @@ namespace macho {
|
||||
RF_Scattered = 0x80000000
|
||||
};
|
||||
|
||||
/// Common relocation info types.
|
||||
enum RelocationInfoType {
|
||||
RIT_Vanilla = 0,
|
||||
RIT_Pair = 1,
|
||||
RIT_Difference = 2,
|
||||
RIT_PreboundLazyPointer = 3,
|
||||
RIT_LocalDifference = 4,
|
||||
RIT_TLV = 5
|
||||
RIT_Difference = 2
|
||||
};
|
||||
|
||||
/// Generic relocation info types, which are shared by some (but not all)
|
||||
/// platforms.
|
||||
enum RelocationInfoType_Generic {
|
||||
RIT_Generic_PreboundLazyPointer = 3,
|
||||
RIT_Generic_LocalDifference = 4,
|
||||
RIT_Generic_TLV = 5
|
||||
};
|
||||
|
||||
/// X86_64 uses its own relocation types.
|
||||
enum RelocationInfoTypeX86_64 {
|
||||
// Note that x86_64 doesn't even share the common relocation types.
|
||||
RIT_X86_64_Unsigned = 0,
|
||||
RIT_X86_64_Signed = 1,
|
||||
RIT_X86_64_Branch = 2,
|
||||
@@ -342,11 +349,8 @@ namespace macho {
|
||||
|
||||
/// ARM also has its own relocation types.
|
||||
enum RelocationInfoTypeARM {
|
||||
RIT_ARM_Vanilla = 0,
|
||||
RIT_ARM_Pair = 1,
|
||||
RIT_ARM_Difference = 2,
|
||||
RIT_ARM_LocalDifference = 3,
|
||||
RIT_ARM_PreboundLazyPointer =4,
|
||||
RIT_ARM_PreboundLazyPointer = 4,
|
||||
RIT_ARM_Branch24Bit = 5,
|
||||
RIT_ARM_ThumbBranch22Bit = 6,
|
||||
RIT_ARM_ThumbBranch32Bit = 7
|
||||
|
Reference in New Issue
Block a user