Bill Schmidt | 22d40dc | 2013-05-13 19:34:37 +0000 | [diff] [blame] | 1 | //===-- PPCTargetObjectFile.h - PPC Object Info -----------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 10 | #ifndef LLVM_LIB_TARGET_POWERPC_PPCTARGETOBJECTFILE_H |
| 11 | #define LLVM_LIB_TARGET_POWERPC_PPCTARGETOBJECTFILE_H |
Bill Schmidt | 22d40dc | 2013-05-13 19:34:37 +0000 | [diff] [blame] | 12 | |
| 13 | #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" |
| 14 | #include "llvm/Target/TargetLoweringObjectFile.h" |
| 15 | #include "llvm/Target/TargetMachine.h" |
| 16 | |
| 17 | namespace llvm { |
| 18 | |
| 19 | /// PPC64LinuxTargetObjectFile - This implementation is used for |
| 20 | /// 64-bit PowerPC Linux. |
| 21 | class PPC64LinuxTargetObjectFile : public TargetLoweringObjectFileELF { |
| 22 | |
Craig Topper | 7315602 | 2014-03-02 09:09:27 +0000 | [diff] [blame] | 23 | void Initialize(MCContext &Ctx, const TargetMachine &TM) override; |
Bill Schmidt | 22d40dc | 2013-05-13 19:34:37 +0000 | [diff] [blame] | 24 | |
Rafael Espindola | 1070501 | 2014-02-08 06:07:27 +0000 | [diff] [blame] | 25 | const MCSection *SelectSectionForGlobal(const GlobalValue *GV, |
Craig Topper | 7315602 | 2014-03-02 09:09:27 +0000 | [diff] [blame] | 26 | SectionKind Kind, Mangler &Mang, |
| 27 | const TargetMachine &TM) const override; |
Ulrich Weigand | 0f03982 | 2013-07-02 18:47:35 +0000 | [diff] [blame] | 28 | |
| 29 | /// \brief Describe a TLS variable address within debug info. |
Craig Topper | 7315602 | 2014-03-02 09:09:27 +0000 | [diff] [blame] | 30 | const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override; |
Bill Schmidt | 22d40dc | 2013-05-13 19:34:37 +0000 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | } // end namespace llvm |
| 34 | |
| 35 | #endif |