2007-01-27 02:53:50 +00:00
|
|
|
//===-- llvm/Target/TargetELFWriterInfo.h - ELF Writer Info -----*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 19:59:42 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-01-27 02:53:50 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// 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:
|
|
|
|
enum MachineType {
|
|
|
|
NoMachine,
|
|
|
|
EM_386 = 3
|
|
|
|
};
|
|
|
|
|
2007-08-27 14:50:10 +00:00
|
|
|
explicit TargetELFWriterInfo(MachineType machine) : EMachine(machine) {}
|
2007-01-27 02:53:50 +00:00
|
|
|
virtual ~TargetELFWriterInfo() {}
|
|
|
|
|
|
|
|
unsigned short getEMachine() const { return EMachine; }
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end llvm namespace
|
|
|
|
|
|
|
|
#endif // LLVM_TARGET_TARGETELFWRITERINFO_H
|