1 //===-- llvm/Target/TargetELFWriterInfo.h - ELF Writer Info -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the TargetELFWriterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TARGET_TARGETELFWRITERINFO_H
15 #define LLVM_TARGET_TARGETELFWRITERINFO_H
19 //===--------------------------------------------------------------------===//
20 // TargetELFWriterInfo
21 //===--------------------------------------------------------------------===//
23 class TargetELFWriterInfo {
24 // EMachine - This field is the target specific value to emit as the
25 // e_machine member of the ELF header.
26 unsigned short EMachine;
33 explicit TargetELFWriterInfo(MachineType machine) : EMachine(machine) {}
34 virtual ~TargetELFWriterInfo() {}
36 unsigned short getEMachine() const { return EMachine; }
39 } // end llvm namespace
41 #endif // LLVM_TARGET_TARGETELFWRITERINFO_H