2014-05-24 14:50:23 +02:00
|
|
|
//===-- AArch64TargetObjectFile.h - AArch64 Object Info -*- C++ ---------*-===//
|
2014-03-29 11:18:08 +01:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 18:26:38 +02:00
|
|
|
#ifndef LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
|
|
|
|
#define LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
|
2014-03-29 11:18:08 +01:00
|
|
|
|
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
|
|
|
#include "llvm/Target/TargetLoweringObjectFile.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2014-05-24 14:50:23 +02:00
|
|
|
class AArch64TargetMachine;
|
2014-03-29 11:18:08 +01:00
|
|
|
|
|
|
|
/// This implementation is used for AArch64 ELF targets (Linux in particular).
|
2014-05-24 14:50:23 +02:00
|
|
|
class AArch64_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
|
2014-03-30 09:25:18 +02:00
|
|
|
void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
|
2014-03-29 11:18:08 +01:00
|
|
|
};
|
|
|
|
|
2014-05-24 14:50:23 +02:00
|
|
|
/// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
|
|
|
|
class AArch64_MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
|
2014-03-29 11:18:08 +01:00
|
|
|
public:
|
2015-03-06 14:48:45 +01:00
|
|
|
AArch64_MachoTargetObjectFile();
|
|
|
|
|
2014-03-29 11:18:08 +01:00
|
|
|
const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
|
|
|
|
unsigned Encoding, Mangler &Mang,
|
|
|
|
const TargetMachine &TM,
|
|
|
|
MachineModuleInfo *MMI,
|
|
|
|
MCStreamer &Streamer) const override;
|
|
|
|
|
|
|
|
MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang,
|
|
|
|
const TargetMachine &TM,
|
|
|
|
MachineModuleInfo *MMI) const override;
|
2015-03-06 14:48:45 +01:00
|
|
|
|
2015-03-06 14:49:05 +01:00
|
|
|
const MCExpr *getIndirectSymViaGOTPCRel(const MCSymbol *Sym,
|
|
|
|
const MCValue &MV, int64_t Offset,
|
|
|
|
MachineModuleInfo *MMI,
|
|
|
|
MCStreamer &Streamer) const override;
|
2014-03-29 11:18:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|