blob: 93101a61797bbd173bfc555d7c3af5262d2d8a64 [file] [log] [blame]
Evan Cheng148b6a42007-07-05 21:15:40 +00001//===- ARMRelocations.h - ARM Code Relocations ------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Evan Cheng148b6a42007-07-05 21:15:40 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file defines the ARM target-specific relocation types.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef ARMRELOCATIONS_H
15#define ARMRELOCATIONS_H
16
17#include "llvm/CodeGen/MachineRelocation.h"
18
19namespace llvm {
20 namespace ARM {
21 enum RelocationType {
Evan Cheng0f282432008-10-29 23:55:43 +000022 // reloc_arm_absolute - Absolute relocation, just add the relocated value
23 // to the value already in memory.
24 reloc_arm_absolute,
25
26 // reloc_arm_relative - PC relative relocation, add the relocated value to
27 // the value already in memory, after we adjust it for where the PC is.
Evan Cheng0ff94f72007-08-07 01:37:15 +000028 reloc_arm_relative,
Evan Cheng148b6a42007-07-05 21:15:40 +000029
Evan Cheng0f282432008-10-29 23:55:43 +000030 // reloc_arm_cp_entry - PC relative relocation for constpool_entry's whose
31 // addresses are kept locally in a map.
32 reloc_arm_cp_entry,
33
34 // reloc_arm_branch - Branch address relocation.
Evan Cheng0ff94f72007-08-07 01:37:15 +000035 reloc_arm_branch
Evan Cheng148b6a42007-07-05 21:15:40 +000036 };
37 }
38}
39
40#endif
41