1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[AVR] Update target machine to use new constructor parameters

The required parameters were changed in r309911.

llvm-svn: 310028
This commit is contained in:
Dylan McKay 2017-08-04 05:48:20 +00:00
parent 1aed4a4dfc
commit 3d61827c3c
2 changed files with 10 additions and 5 deletions

View 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();

View 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;