LLVM  3.7.0
X86TargetObjectFile.h
Go to the documentation of this file.
1 //===-- X86TargetObjectFile.h - X86 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 
10 #ifndef LLVM_LIB_TARGET_X86_X86TARGETOBJECTFILE_H
11 #define LLVM_LIB_TARGET_X86_X86TARGETOBJECTFILE_H
12 
15 
16 namespace llvm {
17 
18  /// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
19  /// x86-64.
21  public:
22  const MCExpr *
23  getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
24  Mangler &Mang, const TargetMachine &TM,
25  MachineModuleInfo *MMI,
26  MCStreamer &Streamer) const override;
27 
28  // getCFIPersonalitySymbol - The symbol that gets passed to
29  // .cfi_personality.
31  const TargetMachine &TM,
32  MachineModuleInfo *MMI) const override;
33 
34  const MCExpr *getIndirectSymViaGOTPCRel(const MCSymbol *Sym,
35  const MCValue &MV, int64_t Offset,
36  MachineModuleInfo *MMI,
37  MCStreamer &Streamer) const override;
38  };
39 
40  /// \brief This implemenatation is used for X86 ELF targets that don't
41  /// have a further specialization.
43  /// \brief Describe a TLS variable address within debug info.
44  const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
45  };
46 
47  /// X86LinuxNaClTargetObjectFile - This implementation is used for linux and
48  /// Native Client on x86 and x86-64.
50  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
51  };
52 
53  /// \brief This implementation is used for Windows targets on x86 and x86-64.
55  const MCExpr *
56  getExecutableRelativeSymbol(const ConstantExpr *CE, Mangler &Mang,
57  const TargetMachine &TM) const override;
58 
59  /// \brief Given a mergeable constant with the specified size and relocation
60  /// information, return a section that it should be placed in.
61  MCSection *getSectionForConstant(SectionKind Kind,
62  const Constant *C) const override;
63  };
64 
65 } // end namespace llvm
66 
67 #endif
Instances of this class represent a uniqued identifier for a section in the current translation unit...
Definition: MCSection.h:48
MCSymbol * getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI) const override
This represents an "assembler immediate".
Definition: MCValue.h:44
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:39
const MCExpr * getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
The mach-o version of this method defaults to returning a stub reference.
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:33
Context object for machine code objects.
Definition: MCContext.h:48
ConstantExpr - a constant value that is initialized with an expression using other constant values...
Definition: Constants.h:852
Streaming machine code generation interface.
Definition: MCStreamer.h:157
This is an important base class in LLVM.
Definition: Constant.h:41
SectionKind - This is a simple POD value that classifies the properties of a section.
Definition: SectionKind.h:28
This implementation is used for Windows targets on x86 and x86-64.
X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin x86-64. ...
const MCExpr * getIndirectSymViaGOTPCRel(const MCSymbol *Sym, const MCValue &MV, int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
Get MachO PC relative GOT entry relocation.
const ARM::ArchExtKind Kind
This implemenatation is used for X86 ELF targets that don't have a further specialization.
Primary interface to the complete machine description for the target machine.
MachineModuleInfo - This class contains meta information specific to a module.
X86LinuxNaClTargetObjectFile - This implementation is used for linux and Native Client on x86 and x86...