]> granicus.if.org Git - llvm/commitdiff
[AVR] Update target machine to use new constructor parameters
authorDylan McKay <me@dylanmckay.io>
Fri, 4 Aug 2017 05:48:20 +0000 (05:48 +0000)
committerDylan McKay <me@dylanmckay.io>
Fri, 4 Aug 2017 05:48:20 +0000 (05:48 +0000)
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
lib/Target/AVR/AVRTargetMachine.h

index 5134d9dee9ea0565526c50255902d7b9ca60de6d..6430e767f3eedd1b3e4b830ced2e33f89221fb03 100644 (file)
@@ -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();
index 795e94e6af03a869f796a72b5ec154b5eb9bfea2..ffcf4350d45a13946868f48ae69725101432db9f 100644 (file)
@@ -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;