1 //===-- X86TargetObjectFile.h - X86 Object Info -----------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_X86_X86TARGETOBJECTFILE_H
10 #define LLVM_LIB_TARGET_X86_X86TARGETOBJECTFILE_H
12 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
16 /// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
18 class X86_64MachoTargetObjectFile
: public TargetLoweringObjectFileMachO
{
20 const MCExpr
*getTTypeGlobalReference(const GlobalValue
*GV
,
22 const TargetMachine
&TM
,
23 MachineModuleInfo
*MMI
,
24 MCStreamer
&Streamer
) const override
;
26 // getCFIPersonalitySymbol - The symbol that gets passed to
28 MCSymbol
*getCFIPersonalitySymbol(const GlobalValue
*GV
,
29 const TargetMachine
&TM
,
30 MachineModuleInfo
*MMI
) const override
;
32 const MCExpr
*getIndirectSymViaGOTPCRel(const GlobalValue
*GV
,
34 const MCValue
&MV
, int64_t Offset
,
35 MachineModuleInfo
*MMI
,
36 MCStreamer
&Streamer
) const override
;
39 /// This implementation is used for X86 ELF targets that don't
40 /// have a further specialization.
41 class X86ELFTargetObjectFile
: public TargetLoweringObjectFileELF
{
43 X86ELFTargetObjectFile() {
44 PLTRelativeVariantKind
= MCSymbolRefExpr::VK_PLT
;
46 /// Describe a TLS variable address within debug info.
47 const MCExpr
*getDebugThreadLocalSymbol(const MCSymbol
*Sym
) const override
;
50 } // end namespace llvm