summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsRelocations.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/Mips/MipsRelocations.h')
-rw-r--r--lib/Target/Mips/MipsRelocations.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsRelocations.h b/lib/Target/Mips/MipsRelocations.h
new file mode 100644
index 0000000000..0df21be3f1
--- /dev/null
+++ b/lib/Target/Mips/MipsRelocations.h
@@ -0,0 +1,32 @@
+//===- MipsRelocations.h - Mips Code Relocations ---------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===---------------------------------------------------------------------===//
+//
+// This file defines the Mips target-specific relocation types
+// (for relocation-model=static).
+//
+//===---------------------------------------------------------------------===//
+
+#ifndef MIPSRELOCATIONS_H_
+#define MIPSRELOCATIONS_H_
+
+#include "llvm/CodeGen/MachineRelocation.h"
+
+namespace llvm {
+ namespace Mips{
+ enum RelocationType {
+ reloc_mips_pcrel = 1,
+ reloc_mips_hi = 3,
+ reloc_mips_lo = 4,
+ reloc_mips_j_jal = 5
+ };
+ }
+}
+
+#endif /* MIPSRELOCATIONS_H_ */
+