mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 17:33:29 +00:00
f5b0c5a1c7
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72982 91177308-0d34-0410-b5e6-96231b3b80d8
56 lines
1.8 KiB
C++
56 lines
1.8 KiB
C++
//===-- llvm/Target/TargetELFWriterInfo.h - ELF Writer Info -----*- 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 TargetELFWriterInfo class.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_TARGET_TARGETELFWRITERINFO_H
|
|
#define LLVM_TARGET_TARGETELFWRITERINFO_H
|
|
|
|
namespace llvm {
|
|
|
|
//===--------------------------------------------------------------------===//
|
|
// TargetELFWriterInfo
|
|
//===--------------------------------------------------------------------===//
|
|
|
|
class TargetELFWriterInfo {
|
|
// EMachine - This field is the target specific value to emit as the
|
|
// e_machine member of the ELF header.
|
|
unsigned short EMachine;
|
|
public:
|
|
|
|
// Machine architectures
|
|
enum MachineType {
|
|
EM_NONE = 0, // No machine
|
|
EM_M32 = 1, // AT&T WE 32100
|
|
EM_SPARC = 2, // SPARC
|
|
EM_386 = 3, // Intel 386
|
|
EM_68K = 4, // Motorola 68000
|
|
EM_88K = 5, // Motorola 88000
|
|
EM_486 = 6, // Intel 486 (deprecated)
|
|
EM_860 = 7, // Intel 80860
|
|
EM_MIPS = 8, // MIPS R3000
|
|
EM_PPC = 20, // PowerPC
|
|
EM_ARM = 40, // ARM
|
|
EM_ALPHA = 41, // DEC Alpha
|
|
EM_SPARCV9 = 43, // SPARC V9
|
|
EM_X86_64 = 62 // AMD64
|
|
};
|
|
|
|
explicit TargetELFWriterInfo(MachineType machine) : EMachine(machine) {}
|
|
virtual ~TargetELFWriterInfo() {}
|
|
|
|
unsigned short getEMachine() const { return EMachine; }
|
|
};
|
|
|
|
} // end llvm namespace
|
|
|
|
#endif // LLVM_TARGET_TARGETELFWRITERINFO_H
|