1 //===-- MSP430FixupKinds.h - MSP430 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_LIB_TARGET_MSP430_MCTARGETDESC_MSP430FIXUPKINDS_H
11 #define LLVM_LIB_TARGET_MSP430_MCTARGETDESC_MSP430FIXUPKINDS_H
12 
13 #include "llvm/MC/MCFixup.h"
14 
15 #undef MSP430
16 
17 namespace llvm {
18 namespace MSP430 {
19 
20 // This table must be in the same order of
21 // MCFixupKindInfo Infos[MSP430::NumTargetFixupKinds]
22 // in MSP430AsmBackend.cpp.
23 //
24 enum Fixups {
25   // A 32 bit absolute fixup.
26   fixup_32 = FirstTargetFixupKind,
27   // A 10 bit PC relative fixup.
28   fixup_10_pcrel,
29   // A 16 bit absolute fixup.
30   fixup_16,
31   // A 16 bit PC relative fixup.
32   fixup_16_pcrel,
33   // A 16 bit absolute fixup for byte operations.
34   fixup_16_byte,
35   // A 16 bit PC relative fixup for command address.
36   fixup_16_pcrel_byte,
37   // A 10 bit PC relative fixup for complicated polymorphs.
38   fixup_2x_pcrel,
39   // A 16 bit relaxable fixup.
40   fixup_rl_pcrel,
41   // A 8 bit absolute fixup.
42   fixup_8,
43   // A 32 bit symbol difference fixup.
44   fixup_sym_diff,
45 
46   // Marker
47   LastTargetFixupKind,
48   NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
49 };
50 } // end namespace MSP430
51 } // end namespace llvm
52 
53 #endif
54