LLVM API Documentation

X86Relocations.h

Go to the documentation of this file.
00001 //===- X86Relocations.h - X86 Code Relocations ------------------*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file was developed by the LLVM research group and is distributed under
00006 // the University of Illinois Open Source License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file defines the X86 target-specific relocation types.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #ifndef X86RELOCATIONS_H
00015 #define X86RELOCATIONS_H
00016 
00017 #include "llvm/CodeGen/MachineRelocation.h"
00018 
00019 namespace llvm {
00020   namespace X86 {
00021     enum RelocationType {
00022       // reloc_pcrel_word - PC relative relocation, add the relocated value to
00023       // the value already in memory, after we adjust it for where the PC is.
00024       reloc_pcrel_word = 0,
00025 
00026       // reloc_absolute_word - Absolute relocation, just add the relocated value
00027       // to the value already in memory.
00028       reloc_absolute_word = 1
00029     };
00030   }
00031 }
00032 
00033 #endif