Skip to content

Commit

Permalink
[lanai] Update for Target API (TargetRegistry::RegisterMCAsmBackend) …
Browse files Browse the repository at this point in the history
…change

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277127 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
jpienaar committed Jul 29, 2016
1 parent c464798 commit 3b7839b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/Target/Lanai/MCTargetDesc/LanaiAsmBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ LanaiAsmBackend::getFixupKindInfo(MCFixupKind Kind) const {

MCAsmBackend *llvm::createLanaiAsmBackend(const Target &T,
const MCRegisterInfo & /*MRI*/,
const Triple &TheTriple,
StringRef /*CPU*/) {
if (!TheTriple.isOSBinFormatELF())
const Triple &TT, StringRef /*CPU*/,
const MCTargetOptions & /*Options*/) {
if (!TT.isOSBinFormatELF())
llvm_unreachable("OS not supported");

return new LanaiAsmBackend(T, TheTriple.getOS());
return new LanaiAsmBackend(T, TT.getOS());
}
4 changes: 3 additions & 1 deletion lib/Target/Lanai/MCTargetDesc/LanaiMCTargetDesc.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIMCTARGETDESC_H

#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCTargetOptions.h"
#include "llvm/Support/DataTypes.h"

namespace llvm {
Expand All @@ -38,7 +39,8 @@ MCCodeEmitter *createLanaiMCCodeEmitter(const MCInstrInfo &MCII,
MCContext &Ctx);

MCAsmBackend *createLanaiAsmBackend(const Target &T, const MCRegisterInfo &MRI,
const Triple &TheTriple, StringRef CPU);
const Triple &TheTriple, StringRef CPU,
const MCTargetOptions &Options);

MCObjectWriter *createLanaiELFObjectWriter(raw_pwrite_stream &OS,
uint8_t OSABI);
Expand Down

0 comments on commit 3b7839b

Please sign in to comment.