OLD | NEW |
(Empty) | |
| 1 //===-- llvm/Target/PNaCl/PNaClTargetMachine.h - Target Information -*- C++ -*-=
==// |
| 2 // |
| 3 // The LLVM Compiler Infrastructure |
| 4 // |
| 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. |
| 7 // |
| 8 //===----------------------------------------------------------------------===// |
| 9 // |
| 10 // This file defines the TargetMachine class specific to PNaCl. |
| 11 // |
| 12 //===----------------------------------------------------------------------===// |
| 13 |
| 14 #ifndef LLVM_LIB_TARGET_PNACL_PNACLTARGETMACHINE_H |
| 15 #define LLVM_LIB_TARGET_PNACL_PNACLTARGETMACHINE_H |
| 16 |
| 17 #include "llvm/IR/DataLayout.h" |
| 18 #include "llvm/Target/TargetMachine.h" |
| 19 |
| 20 namespace llvm { |
| 21 |
| 22 class StringRef; |
| 23 |
| 24 class PNaClTargetMachine final : public TargetMachine { |
| 25 public: |
| 26 PNaClTargetMachine(const Target& T, StringRef TT, |
| 27 StringRef CPU, StringRef FS, |
| 28 const TargetOptions &Options, |
| 29 Reloc::Model RM, |
| 30 CodeModel::Model CM, |
| 31 CodeGenOpt::Level OL); |
| 32 virtual ~PNaClTargetMachine(); |
| 33 |
| 34 bool addPassesToEmitFile(PassManagerBase &PM, |
| 35 raw_pwrite_stream &Out, |
| 36 CodeGenFileType FType, |
| 37 bool DisableVerify = true, |
| 38 AnalysisID StartAfter = nullptr, |
| 39 AnalysisID StopAfter = nullptr) override; |
| 40 private: |
| 41 }; |
| 42 } |
| 43 |
| 44 #endif |
OLD | NEW |