Chris Lattner | 8dad013 | 2004-11-20 23:54:19 +0000 | [diff] [blame] | 1 | //===- X86Relocations.h - X86 Code Relocations ------------------*- C++ -*-===// |
Misha Brukman | 0e0a7a45 | 2005-04-21 23:38:14 +0000 | [diff] [blame] | 2 | // |
Chris Lattner | 8dad013 | 2004-11-20 23:54:19 +0000 | [diff] [blame] | 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by the LLVM research group and is distributed under |
| 6 | // the University of Illinois Open Source License. See LICENSE.TXT for details. |
Misha Brukman | 0e0a7a45 | 2005-04-21 23:38:14 +0000 | [diff] [blame] | 7 | // |
Chris Lattner | 8dad013 | 2004-11-20 23:54:19 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file defines the X86 target-specific relocation types. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef X86RELOCATIONS_H |
| 15 | #define X86RELOCATIONS_H |
| 16 | |
| 17 | #include "llvm/CodeGen/MachineRelocation.h" |
| 18 | |
| 19 | namespace llvm { |
| 20 | namespace X86 { |
| 21 | enum RelocationType { |
| 22 | // reloc_pcrel_word - PC relative relocation, add the relocated value to |
| 23 | // the value already in memory, after we adjust it for where the PC is. |
| 24 | reloc_pcrel_word = 0, |
| 25 | |
Evan Cheng | aabe38b | 2007-12-22 09:40:20 +0000 | [diff] [blame^] | 26 | // reloc_picrel_word - PIC base relative relocation, add the relocated |
| 27 | // value to the value already in memory, after we adjust it for where the |
| 28 | // PIC base is. |
| 29 | reloc_picrel_word = 1, |
| 30 | |
Evan Cheng | 19f2ffc | 2006-12-05 04:01:03 +0000 | [diff] [blame] | 31 | // reloc_absolute_word, reloc_absolute_dword - Absolute relocation, just |
| 32 | // add the relocated value to the value already in memory. |
Evan Cheng | aabe38b | 2007-12-22 09:40:20 +0000 | [diff] [blame^] | 33 | reloc_absolute_word = 2, |
| 34 | reloc_absolute_dword = 3 |
Chris Lattner | 8dad013 | 2004-11-20 23:54:19 +0000 | [diff] [blame] | 35 | }; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | #endif |