blob: d41f445292cf6f4e54305b3effe4d31eb80ddc88 [file] [log] [blame]
Tim Northover3b0846e2014-05-24 12:50:23 +00001//===-- 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
Benjamin Kramera7c40ef2014-08-13 16:26:38 +000010#ifndef LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
11#define LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
Tim Northover3b0846e2014-05-24 12:50:23 +000012
13#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
14#include "llvm/Target/TargetLoweringObjectFile.h"
15
16namespace llvm {
17class AArch64TargetMachine;
18
19/// This implementation is used for AArch64 ELF targets (Linux in particular).
20class AArch64_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
21 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
22};
23
24/// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
25class AArch64_MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
26public:
Bruno Cardoso Lopes52b13912015-03-06 13:48:45 +000027 AArch64_MachoTargetObjectFile();
28
Tim Northover3b0846e2014-05-24 12:50:23 +000029 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
30 unsigned Encoding, Mangler &Mang,
31 const TargetMachine &TM,
32 MachineModuleInfo *MMI,
33 MCStreamer &Streamer) const override;
34
35 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang,
36 const TargetMachine &TM,
37 MachineModuleInfo *MMI) const override;
Bruno Cardoso Lopes52b13912015-03-06 13:48:45 +000038
Bruno Cardoso Lopes618c67a2015-03-06 13:49:05 +000039 const MCExpr *getIndirectSymViaGOTPCRel(const MCSymbol *Sym,
40 const MCValue &MV, int64_t Offset,
41 MachineModuleInfo *MMI,
42 MCStreamer &Streamer) const override;
Tim Northover3b0846e2014-05-24 12:50:23 +000043};
44
45} // end namespace llvm
46
47#endif