LLVM API Documentation
00001 //===-- CTargetMachine.h - TargetMachine for the C backend ------*- 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 declares the TargetMachine that is used by the C backend. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef CTARGETMACHINE_H 00015 #define CTARGETMACHINE_H 00016 00017 #include "llvm/Target/TargetMachine.h" 00018 #include "llvm/Target/TargetData.h" 00019 00020 namespace llvm { 00021 00022 struct CTargetMachine : public TargetMachine { 00023 CTargetMachine(const Target &T, const std::string &TT, const std::string &FS) 00024 : TargetMachine(T) {} 00025 00026 virtual bool WantsWholeFile() const { return true; } 00027 virtual bool addPassesToEmitWholeFile(PassManager &PM, 00028 formatted_raw_ostream &Out, 00029 CodeGenFileType FileType, 00030 CodeGenOpt::Level OptLevel); 00031 00032 virtual const TargetData *getTargetData() const { return 0; } 00033 }; 00034 00035 extern Target TheCBackendTarget; 00036 00037 } // End llvm namespace 00038 00039 00040 #endif