[Sparc] Add initial implementation of MC Code emitter for sparc.
[oota-llvm.git] / lib / Target / Sparc / MCTargetDesc / SparcFixupKinds.h
1 //===-- SparcFixupKinds.h - Sparc 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
10 #ifndef LLVM_SPARC_FIXUPKINDS_H
11 #define LLVM_SPARC_FIXUPKINDS_H
12
13 #include "llvm/MC/MCFixup.h"
14
15 namespace llvm {
16   namespace Sparc {
17     enum Fixups {
18       // fixup_sparc_call30 - 30-bit PC relative relocation for call
19       fixup_sparc_call30 = FirstTargetFixupKind,
20
21       /// fixup_sparc_br22 - 22-bit PC relative relocation for
22       /// branches
23       fixup_sparc_br22,
24
25       /// fixup_sparc_br22 - 22-bit PC relative relocation for
26       /// branches on icc/xcc
27       fixup_sparc_br19,
28
29       // Marker
30       LastTargetFixupKind,
31       NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
32     };
33   }
34 }
35
36 #endif