From c40de480418dae6cd11df64528c0074229e83769 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Tue, 15 Sep 2015 13:46:21 +0000 Subject: Revert r247684 - Replace Triple with a new TargetTuple ... LLDB needs to be updated in the same commit. llvm-svn: 247686 --- llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp') diff --git a/llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp b/llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp index ebcc12042e9..d1d7aaa07ea 100644 --- a/llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp +++ b/llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp @@ -267,11 +267,10 @@ namespace { }; class ELFSparcAsmBackend : public SparcAsmBackend { - TargetTuple::OSType OSType; - + Triple::OSType OSType; public: - ELFSparcAsmBackend(const Target &T, TargetTuple::OSType OSType) - : SparcAsmBackend(T), OSType(OSType) {} + ELFSparcAsmBackend(const Target &T, Triple::OSType OSType) : + SparcAsmBackend(T), OSType(OSType) { } void applyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize, uint64_t Value, bool IsPCRel) const override { @@ -300,7 +299,6 @@ namespace { MCAsmBackend *llvm::createSparcAsmBackend(const Target &T, const MCRegisterInfo &MRI, - const TargetTuple &TT, - StringRef CPU) { + const Triple &TT, StringRef CPU) { return new ELFSparcAsmBackend(T, TT.getOS()); } -- cgit v1.2.3