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-05-24 20:50:23 +08:00
|
|
|
#ifndef LLVM_TARGET_AArch64_TARGETOBJECTFILE_H
|
|
|
|
#define LLVM_TARGET_AArch64_TARGETOBJECTFILE_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:
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|