diff options
Diffstat (limited to 'lib/Target/JSBackend/JSTargetMachine.cpp')
-rw-r--r-- | lib/Target/JSBackend/JSTargetMachine.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/JSBackend/JSTargetMachine.cpp b/lib/Target/JSBackend/JSTargetMachine.cpp new file mode 100644 index 0000000000..af428f2eb2 --- /dev/null +++ b/lib/Target/JSBackend/JSTargetMachine.cpp @@ -0,0 +1,14 @@ +#include "JSTargetMachine.h" +#include "llvm/Support/TargetRegistry.h" +#include "llvm/PassManager.h" +using namespace llvm; + +JSTargetMachine::JSTargetMachine(const Target &T, StringRef Triple, + StringRef CPU, StringRef FS, const TargetOptions &Options, + Reloc::Model RM, CodeModel::Model CM, + CodeGenOpt::Level OL) + : TargetMachine(T, Triple, CPU, FS, Options), + DL("e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-" + "f32:32:32-f64:64:64-p:32:32:32-v128:32:128-n32-S128") { + CodeGenInfo = T.createMCCodeGenInfo(Triple, RM, CM, OL); +} |