Revert r230979, should apply to all X86 ELF.
authorPaul Robinson <paul_robinson@playstation.sony.com>
Mon, 2 Mar 2015 18:50:18 +0000 (18:50 +0000)
committerPaul Robinson <paul_robinson@playstation.sony.com>
Mon, 2 Mar 2015 18:50:18 +0000 (18:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230985 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.cpp
lib/Target/X86/X86TargetObjectFile.cpp
lib/Target/X86/X86TargetObjectFile.h
test/DebugInfo/X86/tls.ll

index f56d6bab157027acee43d71a3ecfcc4a38c0ffda..4bde05306cef6e2e9638c19e38b0ec98ed9c92eb 100644 (file)
@@ -37,8 +37,6 @@ static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) {
     return make_unique<TargetLoweringObjectFileMachO>();
   }
 
-  if (TT.isPS4CPU())
-    return make_unique<PS4TargetObjectFile>();
   if (TT.isOSLinux())
     return make_unique<X86LinuxTargetObjectFile>();
   if (TT.isOSBinFormatELF())
index a298ca88ed792f9fb9c6bb00ca4189074dbc95d7..1d1c32eb2cb8f76c4a18739205bc06a827cfaf0a 100644 (file)
@@ -74,11 +74,6 @@ X86LinuxTargetObjectFile::getDebugThreadLocalSymbol(
   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 ConstantExpr *CE, Mangler &Mang, const TargetMachine &TM) const {
   // We are looking for the difference of two symbols, need a subtraction
index 1cecf0b4819abf53ddbd0fca59d94d6cf32489f6..f7455382098f4f207c975af59707bb216a3d2304 100644 (file)
@@ -47,12 +47,6 @@ namespace llvm {
     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.
   class X86WindowsTargetObjectFile : public TargetLoweringObjectFileCOFF {
     const MCExpr *
index 8c6ae9e0cb285b02c6f0fc459c0082f1a5931315..6f673dd378bdc7cc431e47fbc7ad87afa69c2a2f 100644 (file)
@@ -7,9 +7,6 @@
 ; 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: 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
 ; that here instead of raw assembly printing