Revert r230979, should apply to all X86 ELF.

llvm-svn: 230985
This commit is contained in:
Paul Robinson 2015-03-02 18:50:18 +00:00
parent 5c5c00b7da
commit 9f4cfc574e
4 changed files with 0 additions and 16 deletions

View File

@ -37,8 +37,6 @@ static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
return make_unique<TargetLoweringObjectFileMachO>(); return make_unique<TargetLoweringObjectFileMachO>();
} }
if (TT.isPS4CPU())
return make_unique<PS4TargetObjectFile>();
if (TT.isOSLinux()) if (TT.isOSLinux())
return make_unique<X86LinuxTargetObjectFile>(); return make_unique<X86LinuxTargetObjectFile>();
if (TT.isOSBinFormatELF()) if (TT.isOSBinFormatELF())

View File

@ -74,11 +74,6 @@ X86LinuxTargetObjectFile::getDebugThreadLocalSymbol(
return MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext()); return MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext());
} }
const MCExpr *PS4TargetObjectFile::getDebugThreadLocalSymbol(
const MCSymbol *Sym) const {
return MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext());
}
const MCExpr *X86WindowsTargetObjectFile::getExecutableRelativeSymbol( const MCExpr *X86WindowsTargetObjectFile::getExecutableRelativeSymbol(
const ConstantExpr *CE, Mangler &Mang, const TargetMachine &TM) const { const ConstantExpr *CE, Mangler &Mang, const TargetMachine &TM) const {
// We are looking for the difference of two symbols, need a subtraction // We are looking for the difference of two symbols, need a subtraction

View File

@ -47,12 +47,6 @@ namespace llvm {
const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override; const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
}; };
/// \brief This TLOF implementation is used for PS4.
class PS4TargetObjectFile : public TargetLoweringObjectFileELF {
/// \brief Describe a TLS variable address within debug info.
const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
};
/// \brief This implementation is used for Windows targets on x86 and x86-64. /// \brief This implementation is used for Windows targets on x86 and x86-64.
class X86WindowsTargetObjectFile : public TargetLoweringObjectFileCOFF { class X86WindowsTargetObjectFile : public TargetLoweringObjectFileCOFF {
const MCExpr * const MCExpr *

View File

@ -7,9 +7,6 @@
; RUN: llc %s -o - -filetype=asm -O0 -mtriple=x86_64-unknown-linux-gnu -split-dwarf=Enable \ ; RUN: llc %s -o - -filetype=asm -O0 -mtriple=x86_64-unknown-linux-gnu -split-dwarf=Enable \
; RUN: | FileCheck --check-prefix=CHECK --check-prefix=FISSION %s ; RUN: | FileCheck --check-prefix=CHECK --check-prefix=FISSION %s
; RUN: llc %s -o - -filetype=asm -O0 -mtriple=x86_64-scei-ps4 \
; RUN: | FileCheck --check-prefix=CHECK --check-prefix=SINGLE --check-prefix=SINGLE-64 %s
; FIXME: add relocation and DWARF expression support to llvm-dwarfdump & use ; FIXME: add relocation and DWARF expression support to llvm-dwarfdump & use
; that here instead of raw assembly printing ; that here instead of raw assembly printing