1 //===- X86Relocations.h - X86 Code Relocations ------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the X86 target-specific relocation types.
12 //===----------------------------------------------------------------------===//
14 #ifndef X86RELOCATIONS_H
15 #define X86RELOCATIONS_H
17 #include "llvm/CodeGen/MachineRelocation.h"
21 /// RelocationType - An enum for the x86 relocation codes. Note that
22 /// the terminology here doesn't follow x86 convention - word means
23 /// 32-bit and dword means 64-bit.
25 // reloc_pcrel_word - PC relative relocation, add the relocated value to
26 // the value already in memory, after we adjust it for where the PC is.
29 // reloc_picrel_word - PIC base relative relocation, add the relocated
30 // value to the value already in memory, after we adjust it for where the
32 reloc_picrel_word
= 1,
34 // reloc_absolute_word, reloc_absolute_dword - Absolute relocation, just
35 // add the relocated value to the value already in memory.
36 reloc_absolute_word
= 2,
37 reloc_absolute_dword
= 3