mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Remove explicit enum integer values. They don't appear to be needed, and
they make it less convenient to add new entries. llvm-svn: 83308
This commit is contained in:
parent
b38864fb37
commit
cc0c3fe456
@ -139,25 +139,25 @@ namespace MipsII {
|
||||
//===------------------------------------------------------------------===//
|
||||
// Mips Specific MachineOperand flags.
|
||||
|
||||
MO_NO_FLAG = 0,
|
||||
MO_NO_FLAG,
|
||||
|
||||
/// MO_GOT - Represents the offset into the global offset table at which
|
||||
/// the address the relocation entry symbol resides during execution.
|
||||
MO_GOT = 1,
|
||||
MO_GOT,
|
||||
|
||||
/// MO_GOT_CALL - Represents the offset into the global offset table at
|
||||
/// which the address of a call site relocation entry symbol resides
|
||||
/// during execution. This is different from the above since this flag
|
||||
/// can only be present in call instructions.
|
||||
MO_GOT_CALL = 2,
|
||||
MO_GOT_CALL,
|
||||
|
||||
/// MO_GPREL - Represents the offset from the current gp value to be used
|
||||
/// for the relocatable object file being produced.
|
||||
MO_GPREL = 3,
|
||||
MO_GPREL,
|
||||
|
||||
/// MO_ABS_HILO - Represents the hi or low part of an absolute symbol
|
||||
/// address.
|
||||
MO_ABS_HILO = 4
|
||||
MO_ABS_HILO
|
||||
|
||||
};
|
||||
}
|
||||
|
@ -74,31 +74,31 @@ namespace X86II {
|
||||
//===------------------------------------------------------------------===//
|
||||
// X86 Specific MachineOperand flags.
|
||||
|
||||
MO_NO_FLAG = 0,
|
||||
MO_NO_FLAG,
|
||||
|
||||
/// MO_GOT_ABSOLUTE_ADDRESS - On a symbol operand, this represents a
|
||||
/// relocation of:
|
||||
/// SYMBOL_LABEL + [. - PICBASELABEL]
|
||||
MO_GOT_ABSOLUTE_ADDRESS = 1,
|
||||
MO_GOT_ABSOLUTE_ADDRESS,
|
||||
|
||||
/// MO_PIC_BASE_OFFSET - On a symbol operand this indicates that the
|
||||
/// immediate should get the value of the symbol minus the PIC base label:
|
||||
/// SYMBOL_LABEL - PICBASELABEL
|
||||
MO_PIC_BASE_OFFSET = 2,
|
||||
MO_PIC_BASE_OFFSET,
|
||||
|
||||
/// MO_GOT - On a symbol operand this indicates that the immediate is the
|
||||
/// offset to the GOT entry for the symbol name from the base of the GOT.
|
||||
///
|
||||
/// See the X86-64 ELF ABI supplement for more details.
|
||||
/// SYMBOL_LABEL @GOT
|
||||
MO_GOT = 3,
|
||||
MO_GOT,
|
||||
|
||||
/// MO_GOTOFF - On a symbol operand this indicates that the immediate is
|
||||
/// the offset to the location of the symbol name from the base of the GOT.
|
||||
///
|
||||
/// See the X86-64 ELF ABI supplement for more details.
|
||||
/// SYMBOL_LABEL @GOTOFF
|
||||
MO_GOTOFF = 4,
|
||||
MO_GOTOFF,
|
||||
|
||||
/// MO_GOTPCREL - On a symbol operand this indicates that the immediate is
|
||||
/// offset to the GOT entry for the symbol name from the current code
|
||||
@ -106,75 +106,75 @@ namespace X86II {
|
||||
///
|
||||
/// See the X86-64 ELF ABI supplement for more details.
|
||||
/// SYMBOL_LABEL @GOTPCREL
|
||||
MO_GOTPCREL = 5,
|
||||
MO_GOTPCREL,
|
||||
|
||||
/// MO_PLT - On a symbol operand this indicates that the immediate is
|
||||
/// offset to the PLT entry of symbol name from the current code location.
|
||||
///
|
||||
/// See the X86-64 ELF ABI supplement for more details.
|
||||
/// SYMBOL_LABEL @PLT
|
||||
MO_PLT = 6,
|
||||
MO_PLT,
|
||||
|
||||
/// MO_TLSGD - On a symbol operand this indicates that the immediate is
|
||||
/// some TLS offset.
|
||||
///
|
||||
/// See 'ELF Handling for Thread-Local Storage' for more details.
|
||||
/// SYMBOL_LABEL @TLSGD
|
||||
MO_TLSGD = 7,
|
||||
MO_TLSGD,
|
||||
|
||||
/// MO_GOTTPOFF - On a symbol operand this indicates that the immediate is
|
||||
/// some TLS offset.
|
||||
///
|
||||
/// See 'ELF Handling for Thread-Local Storage' for more details.
|
||||
/// SYMBOL_LABEL @GOTTPOFF
|
||||
MO_GOTTPOFF = 8,
|
||||
MO_GOTTPOFF,
|
||||
|
||||
/// MO_INDNTPOFF - On a symbol operand this indicates that the immediate is
|
||||
/// some TLS offset.
|
||||
///
|
||||
/// See 'ELF Handling for Thread-Local Storage' for more details.
|
||||
/// SYMBOL_LABEL @INDNTPOFF
|
||||
MO_INDNTPOFF = 9,
|
||||
MO_INDNTPOFF,
|
||||
|
||||
/// MO_TPOFF - On a symbol operand this indicates that the immediate is
|
||||
/// some TLS offset.
|
||||
///
|
||||
/// See 'ELF Handling for Thread-Local Storage' for more details.
|
||||
/// SYMBOL_LABEL @TPOFF
|
||||
MO_TPOFF = 10,
|
||||
MO_TPOFF,
|
||||
|
||||
/// MO_NTPOFF - On a symbol operand this indicates that the immediate is
|
||||
/// some TLS offset.
|
||||
///
|
||||
/// See 'ELF Handling for Thread-Local Storage' for more details.
|
||||
/// SYMBOL_LABEL @NTPOFF
|
||||
MO_NTPOFF = 11,
|
||||
MO_NTPOFF,
|
||||
|
||||
/// MO_DLLIMPORT - On a symbol operand "FOO", this indicates that the
|
||||
/// reference is actually to the "__imp_FOO" symbol. This is used for
|
||||
/// dllimport linkage on windows.
|
||||
MO_DLLIMPORT = 12,
|
||||
MO_DLLIMPORT,
|
||||
|
||||
/// MO_DARWIN_STUB - On a symbol operand "FOO", this indicates that the
|
||||
/// reference is actually to the "FOO$stub" symbol. This is used for calls
|
||||
/// and jumps to external functions on Tiger and before.
|
||||
MO_DARWIN_STUB = 13,
|
||||
MO_DARWIN_STUB,
|
||||
|
||||
/// MO_DARWIN_NONLAZY - On a symbol operand "FOO", this indicates that the
|
||||
/// reference is actually to the "FOO$non_lazy_ptr" symbol, which is a
|
||||
/// non-PIC-base-relative reference to a non-hidden dyld lazy pointer stub.
|
||||
MO_DARWIN_NONLAZY = 14,
|
||||
MO_DARWIN_NONLAZY,
|
||||
|
||||
/// MO_DARWIN_NONLAZY_PIC_BASE - On a symbol operand "FOO", this indicates
|
||||
/// that the reference is actually to "FOO$non_lazy_ptr - PICBASE", which is
|
||||
/// a PIC-base-relative reference to a non-hidden dyld lazy pointer stub.
|
||||
MO_DARWIN_NONLAZY_PIC_BASE = 15,
|
||||
MO_DARWIN_NONLAZY_PIC_BASE,
|
||||
|
||||
/// MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE - On a symbol operand "FOO", this
|
||||
/// indicates that the reference is actually to "FOO$non_lazy_ptr -PICBASE",
|
||||
/// which is a PIC-base-relative reference to a hidden dyld lazy pointer
|
||||
/// stub.
|
||||
MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE = 16
|
||||
MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user