| OLD | NEW |
| (Empty) |
| 1 //===-- JSTargetMachine.h - TargetMachine for the JS Backend ----*- 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 declares the TargetMachine that is used by the JS/asm.js/ | |
| 11 // emscripten backend. | |
| 12 // | |
| 13 //===---------------------------------------------------------------------===// | |
| 14 | |
| 15 #ifndef JSTARGETMACHINE_H | |
| 16 #define JSTARGETMACHINE_H | |
| 17 | |
| 18 #include "JS.h" | |
| 19 #include "llvm/Target/TargetMachine.h" | |
| 20 | |
| 21 namespace llvm { | |
| 22 | |
| 23 class formatted_raw_ostream; | |
| 24 | |
| 25 class JSTargetMachine : public TargetMachine { | |
| 26 public: | |
| 27 JSTargetMachine(const Target &T, StringRef Triple, | |
| 28 StringRef CPU, StringRef FS, const TargetOptions &Options, | |
| 29 Reloc::Model RM, CodeModel::Model CM, | |
| 30 CodeGenOpt::Level OL); | |
| 31 | |
| 32 bool addPassesToEmitFile(PassManagerBase &PM, raw_pwrite_stream &Out, | |
| 33 CodeGenFileType FileType, bool DisableVerify, | |
| 34 AnalysisID StartAfter, | |
| 35 AnalysisID StopAfter) override; | |
| 36 | |
| 37 TargetIRAnalysis getTargetIRAnalysis() override; | |
| 38 }; | |
| 39 | |
| 40 } // End llvm namespace | |
| 41 | |
| 42 #endif | |
| OLD | NEW |