]>
Commit | Line | Data |
---|---|---|
223e47cc LB |
1 | //===-- X86FixupKinds.h - X86 Specific Fixup Entries ------------*- C++ -*-===// |
2 | // | |
3 | // The LLVM Compiler Infrastructure | |
4 | // | |
5 | // This file is distributed under the University of Illinois Open Source | |
6 | // License. See LICENSE.TXT for details. | |
7 | // | |
8 | //===----------------------------------------------------------------------===// | |
9 | ||
1a4d82fc JJ |
10 | #ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86FIXUPKINDS_H |
11 | #define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86FIXUPKINDS_H | |
223e47cc LB |
12 | |
13 | #include "llvm/MC/MCFixup.h" | |
14 | ||
15 | namespace llvm { | |
16 | namespace X86 { | |
17 | enum Fixups { | |
18 | reloc_riprel_4byte = FirstTargetFixupKind, // 32-bit rip-relative | |
19 | reloc_riprel_4byte_movq_load, // 32-bit rip-relative in movq | |
20 | reloc_signed_4byte, // 32-bit signed. Unlike FK_Data_4 | |
21 | // this will be sign extended at | |
22 | // runtime. | |
23 | reloc_global_offset_table, // 32-bit, relative to the start | |
24 | // of the instruction. Used only | |
25 | // for _GLOBAL_OFFSET_TABLE_. | |
1a4d82fc | 26 | reloc_global_offset_table8, // 64-bit variant. |
223e47cc LB |
27 | // Marker |
28 | LastTargetFixupKind, | |
29 | NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind | |
30 | }; | |
31 | } | |
32 | } | |
33 | ||
34 | #endif |