llvm.org GIT mirror llvm / 4f45222
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 Bill Wendling 13 years ago
1 changed file(s) with 43 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 //===-- llvm/Target/TargetELFWriterInfo.h - ELF Writer Info -----*- C++ -*-===//
1 //
2 // The LLVM Compiler Infrastructure
3 //
4 // This file was developed by Bill Wendling and is distributed under the
5 // University of Illinois Open Source License. See LICENSE.TXT for details.
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines the TargetELFWriterInfo class.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #ifndef LLVM_TARGET_TARGETELFWRITERINFO_H
14 #define LLVM_TARGET_TARGETELFWRITERINFO_H
15
16 namespace llvm {
17
18 class MachineBasicBlock;
19
20 //===--------------------------------------------------------------------===//
21 // TargetELFWriterInfo
22 //===--------------------------------------------------------------------===//
23
24 class TargetELFWriterInfo {
25 // EMachine - This field is the target specific value to emit as the
26 // e_machine member of the ELF header.
27 unsigned short EMachine;
28 public:
29 enum MachineType {
30 NoMachine,
31 EM_386 = 3
32 };
33
34 TargetELFWriterInfo(MachineType machine) : EMachine(machine) {}
35 virtual ~TargetELFWriterInfo() {}
36
37 unsigned short getEMachine() const { return EMachine; }
38 };
39
40 } // end llvm namespace
41
42 #endif // LLVM_TARGET_TARGETELFWRITERINFO_H