LLVM  8.0.1
AArch64TargetObjectFile.h
Go to the documentation of this file.
1 //===-- AArch64TargetObjectFile.h - AArch64 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_AARCH64_AARCH64TARGETOBJECTFILE_H
11 #define LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
12 
15 
16 namespace llvm {
17 class AArch64TargetMachine;
18 
19 /// This implementation is used for AArch64 ELF targets (Linux in particular).
21  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
22 };
23 
24 /// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
26 public:
28 
30  unsigned Encoding,
31  const TargetMachine &TM,
32  MachineModuleInfo *MMI,
33  MCStreamer &Streamer) const override;
34 
36  const TargetMachine &TM,
37  MachineModuleInfo *MMI) const override;
38 
39  const MCExpr *getIndirectSymViaGOTPCRel(const MCSymbol *Sym,
40  const MCValue &MV, int64_t Offset,
41  MachineModuleInfo *MMI,
42  MCStreamer &Streamer) const override;
43 
44  void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
45  const TargetMachine &TM) const override;
46 };
47 
48 /// This implementation is used for AArch64 COFF targets.
50 
51 } // end namespace llvm
52 
53 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
This represents an "assembler immediate".
Definition: MCValue.h:40
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:42
MCSymbol * getCFIPersonalitySymbol(const GlobalValue *GV, const TargetMachine &TM, MachineModuleInfo *MMI) const override
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:36
Context object for machine code objects.
Definition: MCContext.h:63
Streaming machine code generation interface.
Definition: MCStreamer.h:189
const MCExpr * getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
Return an MCExpr to use for a reference to the specified type info global variable from exception han...
This implementation is used for AArch64 COFF targets.
virtual const MCExpr * getIndirectSymViaGOTPCRel(const MCSymbol *Sym, const MCValue &MV, int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const
Get the target specific PC relative GOT entry relocation.
virtual void getNameWithPrefix(SmallVectorImpl< char > &OutName, const GlobalValue *GV, const TargetMachine &TM) const
This implementation is used for AArch64 ELF targets (Linux in particular).
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:59
AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
This class contains meta information specific to a module.