From 3acb6cc980dd6b4728868bb2fc70a2fd92d0ab7a Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Fri, 4 Aug 2017 05:48:20 +0000 Subject: [PATCH] [AVR] Update target machine to use new constructor parameters The required parameters were changed in r309911. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310028 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AVR/AVRTargetMachine.cpp | 9 ++++++--- lib/Target/AVR/AVRTargetMachine.h | 6 ++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/Target/AVR/AVRTargetMachine.cpp b/lib/Target/AVR/AVRTargetMachine.cpp index 5134d9dee9e..6430e767f3e 100644 --- a/lib/Target/AVR/AVRTargetMachine.cpp +++ b/lib/Target/AVR/AVRTargetMachine.cpp @@ -43,11 +43,14 @@ static Reloc::Model getEffectiveRelocModel(Optional RM) { AVRTargetMachine::AVRTargetMachine(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, - Optional RM, CodeModel::Model CM, - CodeGenOpt::Level OL) + Optional RM, + Optional CM, + CodeGenOpt::Level OL, + bool JIT) : LLVMTargetMachine( T, AVRDataLayout, TT, - getCPU(CPU), FS, Options, getEffectiveRelocModel(RM), CM, OL), + getCPU(CPU), FS, Options, getEffectiveRelocModel(RM), + CM, OL), SubTarget(TT, getCPU(CPU), FS, *this) { this->TLOF = make_unique(); initAsmInfo(); diff --git a/lib/Target/AVR/AVRTargetMachine.h b/lib/Target/AVR/AVRTargetMachine.h index 795e94e6af0..ffcf4350d45 100644 --- a/lib/Target/AVR/AVRTargetMachine.h +++ b/lib/Target/AVR/AVRTargetMachine.h @@ -29,8 +29,10 @@ namespace llvm { class AVRTargetMachine : public LLVMTargetMachine { public: AVRTargetMachine(const Target &T, const Triple &TT, StringRef CPU, - StringRef FS, const TargetOptions &Options, Optional RM, - CodeModel::Model CM, CodeGenOpt::Level OL); + StringRef FS, const TargetOptions &Options, + Optional RM, + Optional CM, + CodeGenOpt::Level OL, bool JIT); const AVRSubtarget *getSubtargetImpl() const; const AVRSubtarget *getSubtargetImpl(const Function &) const override; -- 2.50.1