| Bill Schmidt | 22d40dc | 2013-05-13 19:34:37 +0000 | [diff] [blame] | 1 | //===-- PPCTargetObjectFile.h - PPC Object Info -----------------*- C++ -*-===// |
| 2 | // |
| Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| Bill Schmidt | 22d40dc | 2013-05-13 19:34:37 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 9 | #ifndef LLVM_LIB_TARGET_POWERPC_PPCTARGETOBJECTFILE_H |
| 10 | #define LLVM_LIB_TARGET_POWERPC_PPCTARGETOBJECTFILE_H |
| Bill Schmidt | 22d40dc | 2013-05-13 19:34:37 +0000 | [diff] [blame] | 11 | |
| 12 | #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" |
| David Blaikie | 6054e65 | 2018-03-23 23:58:19 +0000 | [diff] [blame] | 13 | #include "llvm/Target/TargetLoweringObjectFile.h" |
| Bill Schmidt | 22d40dc | 2013-05-13 19:34:37 +0000 | [diff] [blame] | 14 | #include "llvm/Target/TargetMachine.h" |
| 15 | |
| 16 | namespace llvm { |
| 17 | |
| 18 | /// PPC64LinuxTargetObjectFile - This implementation is used for |
| 19 | /// 64-bit PowerPC Linux. |
| 20 | class PPC64LinuxTargetObjectFile : public TargetLoweringObjectFileELF { |
| 21 | |
| Craig Topper | 7315602 | 2014-03-02 09:09:27 +0000 | [diff] [blame] | 22 | void Initialize(MCContext &Ctx, const TargetMachine &TM) override; |
| Bill Schmidt | 22d40dc | 2013-05-13 19:34:37 +0000 | [diff] [blame] | 23 | |
| Peter Collingbourne | 6733564 | 2016-10-24 19:23:39 +0000 | [diff] [blame] | 24 | MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, |
| Rafael Espindola | 0709a7b | 2015-05-21 19:20:38 +0000 | [diff] [blame] | 25 | const TargetMachine &TM) const override; |
| Ulrich Weigand | 0f03982 | 2013-07-02 18:47:35 +0000 | [diff] [blame] | 26 | |
| Adrian Prantl | 5f8f34e4 | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 27 | /// Describe a TLS variable address within debug info. |
| Craig Topper | 7315602 | 2014-03-02 09:09:27 +0000 | [diff] [blame] | 28 | const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override; |
| Bill Schmidt | 22d40dc | 2013-05-13 19:34:37 +0000 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | } // end namespace llvm |
| 32 | |
| 33 | #endif |