diff options
author | Dylan McKay <me@dylanmckay.io> | 2017-08-04 05:48:20 +0000 |
---|---|---|
committer | Dylan McKay <me@dylanmckay.io> | 2017-08-04 05:48:20 +0000 |
commit | 054744783153645bab749209464b88a86b8d645b (patch) | |
tree | 5067de11e975910730ccdd07cc56acf60951cd2e /llvm/lib/Target/AVR | |
parent | 07da1ab23aca68069971987c9f31d4c839334965 (diff) | |
download | bcm5719-llvm-054744783153645bab749209464b88a86b8d645b.tar.gz bcm5719-llvm-054744783153645bab749209464b88a86b8d645b.zip |
[AVR] Update target machine to use new constructor parameters
The required parameters were changed in r309911.
llvm-svn: 310028
Diffstat (limited to 'llvm/lib/Target/AVR')
-rw-r--r-- | llvm/lib/Target/AVR/AVRTargetMachine.cpp | 9 | ||||
-rw-r--r-- | llvm/lib/Target/AVR/AVRTargetMachine.h | 6 |
2 files changed, 10 insertions, 5 deletions
diff --git a/llvm/lib/Target/AVR/AVRTargetMachine.cpp b/llvm/lib/Target/AVR/AVRTargetMachine.cpp index 5134d9dee9e..6430e767f3e 100644 --- a/llvm/lib/Target/AVR/AVRTargetMachine.cpp +++ b/llvm/lib/Target/AVR/AVRTargetMachine.cpp @@ -43,11 +43,14 @@ static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { AVRTargetMachine::AVRTargetMachine(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, - Optional<Reloc::Model> RM, CodeModel::Model CM, - CodeGenOpt::Level OL) + Optional<Reloc::Model> RM, + Optional<CodeModel::Model> 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<AVRTargetObjectFile>(); initAsmInfo(); diff --git a/llvm/lib/Target/AVR/AVRTargetMachine.h b/llvm/lib/Target/AVR/AVRTargetMachine.h index 795e94e6af0..ffcf4350d45 100644 --- a/llvm/lib/Target/AVR/AVRTargetMachine.h +++ b/llvm/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<Reloc::Model> RM, - CodeModel::Model CM, CodeGenOpt::Level OL); + StringRef FS, const TargetOptions &Options, + Optional<Reloc::Model> RM, + Optional<CodeModel::Model> CM, + CodeGenOpt::Level OL, bool JIT); const AVRSubtarget *getSubtargetImpl() const; const AVRSubtarget *getSubtargetImpl(const Function &) const override; |