Remove explicit enum integer values. They don't appear to be needed, and

they make it less convenient to add new entries.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83308 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2009-10-05 15:52:08 +00:00
parent 21313bc62f
commit 01a76ce8d9
2 changed files with 22 additions and 22 deletions

View File

@ -139,25 +139,25 @@ namespace MipsII {
//===------------------------------------------------------------------===// //===------------------------------------------------------------------===//
// Mips Specific MachineOperand flags. // Mips Specific MachineOperand flags.
MO_NO_FLAG = 0, MO_NO_FLAG,
/// MO_GOT - Represents the offset into the global offset table at which /// MO_GOT - Represents the offset into the global offset table at which
/// the address the relocation entry symbol resides during execution. /// 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 /// MO_GOT_CALL - Represents the offset into the global offset table at
/// which the address of a call site relocation entry symbol resides /// which the address of a call site relocation entry symbol resides
/// during execution. This is different from the above since this flag /// during execution. This is different from the above since this flag
/// can only be present in call instructions. /// 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 /// MO_GPREL - Represents the offset from the current gp value to be used
/// for the relocatable object file being produced. /// 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 /// MO_ABS_HILO - Represents the hi or low part of an absolute symbol
/// address. /// address.
MO_ABS_HILO = 4 MO_ABS_HILO
}; };
} }

View File

@ -74,31 +74,31 @@ namespace X86II {
//===------------------------------------------------------------------===// //===------------------------------------------------------------------===//
// X86 Specific MachineOperand flags. // X86 Specific MachineOperand flags.
MO_NO_FLAG = 0, MO_NO_FLAG,
/// MO_GOT_ABSOLUTE_ADDRESS - On a symbol operand, this represents a /// MO_GOT_ABSOLUTE_ADDRESS - On a symbol operand, this represents a
/// relocation of: /// relocation of:
/// SYMBOL_LABEL + [. - PICBASELABEL] /// SYMBOL_LABEL + [. - PICBASELABEL]
MO_GOT_ABSOLUTE_ADDRESS = 1, MO_GOT_ABSOLUTE_ADDRESS,
/// MO_PIC_BASE_OFFSET - On a symbol operand this indicates that the /// 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: /// immediate should get the value of the symbol minus the PIC base label:
/// SYMBOL_LABEL - PICBASELABEL /// 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 /// 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. /// 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. /// See the X86-64 ELF ABI supplement for more details.
/// SYMBOL_LABEL @GOT /// SYMBOL_LABEL @GOT
MO_GOT = 3, MO_GOT,
/// MO_GOTOFF - On a symbol operand this indicates that the immediate is /// 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. /// 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. /// See the X86-64 ELF ABI supplement for more details.
/// SYMBOL_LABEL @GOTOFF /// SYMBOL_LABEL @GOTOFF
MO_GOTOFF = 4, MO_GOTOFF,
/// MO_GOTPCREL - On a symbol operand this indicates that the immediate is /// 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 /// 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. /// See the X86-64 ELF ABI supplement for more details.
/// SYMBOL_LABEL @GOTPCREL /// SYMBOL_LABEL @GOTPCREL
MO_GOTPCREL = 5, MO_GOTPCREL,
/// MO_PLT - On a symbol operand this indicates that the immediate is /// 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. /// offset to the PLT entry of symbol name from the current code location.
/// ///
/// See the X86-64 ELF ABI supplement for more details. /// See the X86-64 ELF ABI supplement for more details.
/// SYMBOL_LABEL @PLT /// SYMBOL_LABEL @PLT
MO_PLT = 6, MO_PLT,
/// MO_TLSGD - On a symbol operand this indicates that the immediate is /// MO_TLSGD - On a symbol operand this indicates that the immediate is
/// some TLS offset. /// some TLS offset.
/// ///
/// See 'ELF Handling for Thread-Local Storage' for more details. /// See 'ELF Handling for Thread-Local Storage' for more details.
/// SYMBOL_LABEL @TLSGD /// SYMBOL_LABEL @TLSGD
MO_TLSGD = 7, MO_TLSGD,
/// MO_GOTTPOFF - On a symbol operand this indicates that the immediate is /// MO_GOTTPOFF - On a symbol operand this indicates that the immediate is
/// some TLS offset. /// some TLS offset.
/// ///
/// See 'ELF Handling for Thread-Local Storage' for more details. /// See 'ELF Handling for Thread-Local Storage' for more details.
/// SYMBOL_LABEL @GOTTPOFF /// SYMBOL_LABEL @GOTTPOFF
MO_GOTTPOFF = 8, MO_GOTTPOFF,
/// MO_INDNTPOFF - On a symbol operand this indicates that the immediate is /// MO_INDNTPOFF - On a symbol operand this indicates that the immediate is
/// some TLS offset. /// some TLS offset.
/// ///
/// See 'ELF Handling for Thread-Local Storage' for more details. /// See 'ELF Handling for Thread-Local Storage' for more details.
/// SYMBOL_LABEL @INDNTPOFF /// SYMBOL_LABEL @INDNTPOFF
MO_INDNTPOFF = 9, MO_INDNTPOFF,
/// MO_TPOFF - On a symbol operand this indicates that the immediate is /// MO_TPOFF - On a symbol operand this indicates that the immediate is
/// some TLS offset. /// some TLS offset.
/// ///
/// See 'ELF Handling for Thread-Local Storage' for more details. /// See 'ELF Handling for Thread-Local Storage' for more details.
/// SYMBOL_LABEL @TPOFF /// SYMBOL_LABEL @TPOFF
MO_TPOFF = 10, MO_TPOFF,
/// MO_NTPOFF - On a symbol operand this indicates that the immediate is /// MO_NTPOFF - On a symbol operand this indicates that the immediate is
/// some TLS offset. /// some TLS offset.
/// ///
/// See 'ELF Handling for Thread-Local Storage' for more details. /// See 'ELF Handling for Thread-Local Storage' for more details.
/// SYMBOL_LABEL @NTPOFF /// SYMBOL_LABEL @NTPOFF
MO_NTPOFF = 11, MO_NTPOFF,
/// MO_DLLIMPORT - On a symbol operand "FOO", this indicates that the /// MO_DLLIMPORT - On a symbol operand "FOO", this indicates that the
/// reference is actually to the "__imp_FOO" symbol. This is used for /// reference is actually to the "__imp_FOO" symbol. This is used for
/// dllimport linkage on windows. /// dllimport linkage on windows.
MO_DLLIMPORT = 12, MO_DLLIMPORT,
/// MO_DARWIN_STUB - On a symbol operand "FOO", this indicates that the /// 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 /// reference is actually to the "FOO$stub" symbol. This is used for calls
/// and jumps to external functions on Tiger and before. /// 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 /// 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 /// 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. /// 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 /// 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 /// 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. /// 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 /// MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE - On a symbol operand "FOO", this
/// indicates that the reference is actually to "FOO$non_lazy_ptr -PICBASE", /// 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 /// which is a PIC-base-relative reference to a hidden dyld lazy pointer
/// stub. /// stub.
MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE = 16 MO_DARWIN_HIDDEN_NONLAZY_PIC_BASE
}; };
} }