~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to .pc/0041-undef-PPC-macro.diff/lib/Target/PowerPC/MCTargetDesc/PPCFixupKinds.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-kgjti7z4tkitxhre
Tags: 3.1~svn153643-1
* New snapshot release
* Fix a problem in the llvm-3.1-source package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//===-- PPCFixupKinds.h - PPC 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_PPC_PPCFIXUPKINDS_H
 
11
#define LLVM_PPC_PPCFIXUPKINDS_H
 
12
 
 
13
#include "llvm/MC/MCFixup.h"
 
14
 
 
15
namespace llvm {
 
16
namespace PPC {
 
17
enum Fixups {
 
18
  // fixup_ppc_br24 - 24-bit PC relative relocation for direct branches like 'b'
 
19
  // and 'bl'.
 
20
  fixup_ppc_br24 = FirstTargetFixupKind,
 
21
  
 
22
  /// fixup_ppc_brcond14 - 14-bit PC relative relocation for conditional
 
23
  /// branches.
 
24
  fixup_ppc_brcond14,
 
25
  
 
26
  /// fixup_ppc_lo16 - A 16-bit fixup corresponding to lo16(_foo) for instrs
 
27
  /// like 'li'.
 
28
  fixup_ppc_lo16,
 
29
  
 
30
  /// fixup_ppc_ha16 - A 16-bit fixup corresponding to ha16(_foo) for instrs
 
31
  /// like 'lis'.
 
32
  fixup_ppc_ha16,
 
33
  
 
34
  /// fixup_ppc_lo14 - A 14-bit fixup corresponding to lo16(_foo) for instrs
 
35
  /// like 'std'.
 
36
  fixup_ppc_lo14,
 
37
  
 
38
  // Marker
 
39
  LastTargetFixupKind,
 
40
  NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
 
41
};
 
42
}
 
43
}
 
44
 
 
45
#endif