2014-05-24 12:50:23 +00:00
|
|
|
//===-- AArch64TargetObjectFile.h - AArch64 Object Info -*- C++ ---------*-===//
|
2014-03-29 10:18:08 +00: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 16:26:38 +00:00
|
|
|
#ifndef LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
|
|
|
|
#define LLVM_LIB_TARGET_AARCH64_AARCH64TARGETOBJECTFILE_H
|
2014-03-29 10:18:08 +00:00
|
|
|
|
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
|
|
|
#include "llvm/Target/TargetLoweringObjectFile.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2014-05-24 12:50:23 +00:00
|
|
|
class AArch64TargetMachine;
|
2014-03-29 10:18:08 +00:00
|
|
|
|
|
|
|
/// This implementation is used for AArch64 ELF targets (Linux in particular).
|
2014-05-24 12:50:23 +00:00
|
|
|
class AArch64_ELFTargetObjectFile : public TargetLoweringObjectFileELF {
|
2014-03-30 07:25:18 +00:00
|
|
|
void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
|
2014-03-29 10:18:08 +00:00
|
|
|
};
|
|
|
|
|
2014-05-24 12:50:23 +00:00
|
|
|
/// AArch64_MachoTargetObjectFile - This TLOF implementation is used for Darwin.
|
|
|
|
class AArch64_MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
|
2014-03-29 10:18:08 +00:00
|
|
|
public:
|
2015-03-06 13:48:45 +00:00
|
|
|
AArch64_MachoTargetObjectFile();
|
|
|
|
|
2014-03-29 10:18:08 +00: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 13:48:45 +00:00
|
|
|
|
2015-03-06 13:49:05 +00:00
|
|
|
const MCExpr *getIndirectSymViaGOTPCRel(const MCSymbol *Sym,
|
|
|
|
const MCValue &MV, int64_t Offset,
|
|
|
|
MachineModuleInfo *MMI,
|
|
|
|
MCStreamer &Streamer) const override;
|
2014-03-29 10:18:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|