LLVM API Documentation
00001 //===-- llvm/Target/TargetELFWriterInfo.h - ELF Writer Info -----*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file defines the TargetELFWriterInfo class. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef LLVM_TARGET_TARGETELFWRITERINFO_H 00015 #define LLVM_TARGET_TARGETELFWRITERINFO_H 00016 00017 namespace llvm { 00018 00019 //===--------------------------------------------------------------------===// 00020 // TargetELFWriterInfo 00021 //===--------------------------------------------------------------------===// 00022 00023 class TargetELFWriterInfo { 00024 // EMachine - This field is the target specific value to emit as the 00025 // e_machine member of the ELF header. 00026 unsigned short EMachine; 00027 public: 00028 enum MachineType { 00029 NoMachine, 00030 EM_386 = 3 00031 }; 00032 00033 explicit TargetELFWriterInfo(MachineType machine) : EMachine(machine) {} 00034 virtual ~TargetELFWriterInfo() {} 00035 00036 unsigned short getEMachine() const { return EMachine; } 00037 }; 00038 00039 } // end llvm namespace 00040 00041 #endif // LLVM_TARGET_TARGETELFWRITERINFO_H
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.