blob: bc1efabc7abc345d3fb87c39ba262992c9ee977b [file] [log] [blame]
Chris Lattner8dad0132004-11-20 23:54:19 +00001//===- X86Relocations.h - X86 Code Relocations ------------------*- C++ -*-===//
Misha Brukman0e0a7a452005-04-21 23:38:14 +00002//
Chris Lattner8dad0132004-11-20 23:54:19 +00003// 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 Brukman0e0a7a452005-04-21 23:38:14 +00007//
Chris Lattner8dad0132004-11-20 23:54:19 +00008//===----------------------------------------------------------------------===//
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
19namespace 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
26 // reloc_absolute_word - Absolute relocation, just add the relocated value
27 // to the value already in memory.
Chris Lattnerd74ea2b2006-05-24 17:04:05 +000028 reloc_absolute_word = 1
Chris Lattner8dad0132004-11-20 23:54:19 +000029 };
30 }
31}
32
33#endif