mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-02 09:49:09 +00:00
The TargetELFWriterInfo class holds target-specific information for the ELF writer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33570 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
198529aaf1
commit
4f45222baa
43
include/llvm/Target/TargetELFWriterInfo.h
Normal file
43
include/llvm/Target/TargetELFWriterInfo.h
Normal file
@ -0,0 +1,43 @@
|
||||
//===-- llvm/Target/TargetELFWriterInfo.h - ELF Writer Info -----*- C++ -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file was developed by Bill Wendling and 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 {
|
||||
|
||||
class MachineBasicBlock;
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// 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
|
||||
};
|
||||
|
||||
TargetELFWriterInfo(MachineType machine) : EMachine(machine) {}
|
||||
virtual ~TargetELFWriterInfo() {}
|
||||
|
||||
unsigned short getEMachine() const { return EMachine; }
|
||||
};
|
||||
|
||||
} // end llvm namespace
|
||||
|
||||
#endif // LLVM_TARGET_TARGETELFWRITERINFO_H
|
Loading…
Reference in New Issue
Block a user