[llvm-commits] CVS: llvm/include/llvm/Target/TargetELFWriterInfo.h
Bill Wendling
isanbard at gmail.com
Fri Jan 26 18:54:06 PST 2007
Changes in directory llvm/include/llvm/Target:
TargetELFWriterInfo.h added (r1.1)
---
Log message:
The TargetELFWriterInfo class holds target-specific information for the ELF writer.
---
Diffs of the changes: (+43 -0)
TargetELFWriterInfo.h | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+)
Index: llvm/include/llvm/Target/TargetELFWriterInfo.h
diff -c /dev/null llvm/include/llvm/Target/TargetELFWriterInfo.h:1.1
*** /dev/null Fri Jan 26 20:54:00 2007
--- llvm/include/llvm/Target/TargetELFWriterInfo.h Fri Jan 26 20:53:50 2007
***************
*** 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
More information about the llvm-commits
mailing list