From ede0e9b58518f7027eea2e395bead8c9ae70b6a3 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 10 Dec 2010 06:19:49 +0000 Subject: [PATCH] Mach-O/ARM: Add relocation type enumeration. llvm-svn: 121467 --- llvm/include/llvm/Object/MachOFormat.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/llvm/include/llvm/Object/MachOFormat.h b/llvm/include/llvm/Object/MachOFormat.h index 1e1bd9524844..5a33951e2835 100644 --- a/llvm/include/llvm/Object/MachOFormat.h +++ b/llvm/include/llvm/Object/MachOFormat.h @@ -340,6 +340,18 @@ namespace macho { RIT_X86_64_TLV = 9 }; + /// 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_Branch24Bit = 5, + RIT_ARM_ThumbBranch22Bit = 6, + RIT_ARM_ThumbBranch32Bit = 7 + }; + } // end namespace macho } // end namespace object