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