[llvm] Stop including llvm/ADT/DenseMap.h (NFC)
[llvm-project.git] / llvm / lib / Target / X86 / X86TargetObjectFile.h
blobf4bf52c83771ff4eb94b03bcb84d5f4e8a3cc397
1 //===-- X86TargetObjectFile.h - X86 Object Info -----------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_X86_X86TARGETOBJECTFILE_H
10 #define LLVM_LIB_TARGET_X86_X86TARGETOBJECTFILE_H
12 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
14 namespace llvm {
16 /// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
17 /// x86-64.
18 class X86_64MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
19 public:
20 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
21 unsigned Encoding,
22 const TargetMachine &TM,
23 MachineModuleInfo *MMI,
24 MCStreamer &Streamer) const override;
26 // getCFIPersonalitySymbol - The symbol that gets passed to
27 // .cfi_personality.
28 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
29 const TargetMachine &TM,
30 MachineModuleInfo *MMI) const override;
32 const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV,
33 const MCSymbol *Sym,
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 {
42 public:
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
52 #endif