diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-01-16 16:41:57 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-01-16 16:41:57 +0000 |
| commit | 4f01b783a3ca5b2544fe1b1677b5bcf6d91c6d2c (patch) | |
| tree | c2f1cc6fb429dc3d092104ea775e8f95132691fe /llvm/lib/Target/X86/X86COFF.h | |
| parent | c7b2ab9bdfbaa1a1acd188136d5539d6badf56ce (diff) | |
| download | bcm5719-llvm-4f01b783a3ca5b2544fe1b1677b5bcf6d91c6d2c.tar.gz bcm5719-llvm-4f01b783a3ca5b2544fe1b1677b5bcf6d91c6d2c.zip | |
Emit symbol type information for ELF/COFF targets
llvm-svn: 33256
Diffstat (limited to 'llvm/lib/Target/X86/X86COFF.h')
| -rw-r--r-- | llvm/lib/Target/X86/X86COFF.h | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86COFF.h b/llvm/lib/Target/X86/X86COFF.h new file mode 100644 index 00000000000..1d7878b88b1 --- /dev/null +++ b/llvm/lib/Target/X86/X86COFF.h @@ -0,0 +1,89 @@ +//===--- X86COFF.h - Some definitions from COFF documentations ------------===// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by the LLVM research group and is distributed under +// the University of Illinois Open Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file just defines some symbols found in COFF documentation. They are +// used to emit function type information for COFF targets (Cygwin/Mingw32). +// +//===----------------------------------------------------------------------===// + +#ifndef X86COFF_H +#define X86COFF_H + +namespace COFF +{ +enum StorageClass { + C_EFCN = -1, // physical end of function + C_NULL = 0, + C_AUTO = 1, // external definition + C_EXT = 2, // external symbol + C_STAT = 3, // static + C_REG = 4, // register variable + C_EXTDEF = 5, // external definition + C_LABEL = 6, // label + C_ULABEL = 7, // undefined label + C_MOS = 8, // member of structure + C_ARG = 9, // function argument + C_STRTAG = 10, // structure tag + C_MOU = 11, // member of union + C_UNTAG = 12, // union tag + C_TPDEF = 13, // type definition + C_USTATIC = 14, // undefined static + C_ENTAG = 15, // enumeration tag + C_MOE = 16, // member of enumeration + C_REGPARM = 17, // register parameter + C_FIELD = 18, // bit field + + C_BLOCK = 100, // ".bb" or ".eb" + C_FCN = 101, // ".bf" or ".ef" + C_EOS = 102, // end of structure + C_FILE = 103, // file name + C_LINE = 104, // dummy class for line number entry + C_ALIAS = 105, // duplicate tag + C_HIDDEN = 106 +}; + +enum SymbolType { + T_NULL = 0, // no type info + T_ARG = 1, // function argument (only used by compiler) + T_VOID = 1, + T_CHAR = 2, // character + T_SHORT = 3, // short integer + T_INT = 4, // integer + T_LONG = 5, // long integer + T_FLOAT = 6, // floating point + T_DOUBLE = 7, // double word + T_STRUCT = 8, // structure + T_UNION = 9, // union + T_ENUM = 10, // enumeration + T_MOE = 11, // member of enumeration + T_UCHAR = 12, // unsigned character + T_USHORT = 13, // unsigned short + T_UINT = 14, // unsigned integer + T_ULONG = 15 // unsigned long +}; + +enum SymbolDerivedType { + DT_NON = 0, // no derived type + DT_PTR = 1, // pointer + DT_FCN = 2, // function + DT_ARY = 3 // array +}; + +enum TypePacking { + N_BTMASK = 017, + N_TMASK = 060, + N_TMASK1 = 0300, + N_TMASK2 = 0360, + N_BTSHFT = 4, + N_TSHIFT = 2 +}; + +} + +#endif // X86COFF_H |

