2012-02-18 20:03:15 +08:00
|
|
|
//===-- X86TargetObjectFile.h - X86 Object Info -----------------*- C++ -*-===//
|
2009-09-16 09:46:41 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2009-09-16 09:46:41 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_X86_X86TARGETOBJECTFILE_H
|
|
|
|
#define LLVM_LIB_TARGET_X86_X86TARGETOBJECTFILE_H
|
2009-09-16 09:46:41 +08:00
|
|
|
|
2010-02-16 06:37:53 +08:00
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
2009-09-16 09:46:41 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
2010-02-16 06:35:59 +08:00
|
|
|
|
2012-06-26 18:05:06 +08:00
|
|
|
/// X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin
|
2010-03-16 03:04:37 +08:00
|
|
|
/// x86-64.
|
2012-06-26 18:05:06 +08:00
|
|
|
class X86_64MachoTargetObjectFile : public TargetLoweringObjectFileMachO {
|
2010-03-16 03:04:37 +08:00
|
|
|
public:
|
2016-09-16 15:33:15 +08:00
|
|
|
const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
|
|
|
|
unsigned Encoding,
|
|
|
|
const TargetMachine &TM,
|
|
|
|
MachineModuleInfo *MMI,
|
|
|
|
MCStreamer &Streamer) const override;
|
2011-04-28 07:08:15 +08:00
|
|
|
|
|
|
|
// getCFIPersonalitySymbol - The symbol that gets passed to
|
|
|
|
// .cfi_personality.
|
2016-09-16 15:33:15 +08:00
|
|
|
MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV,
|
2014-02-20 01:23:20 +08:00
|
|
|
const TargetMachine &TM,
|
2014-03-02 17:09:27 +08:00
|
|
|
MachineModuleInfo *MMI) const override;
|
2015-02-24 05:26:18 +08:00
|
|
|
|
2019-08-23 00:59:00 +08:00
|
|
|
const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV,
|
|
|
|
const MCSymbol *Sym,
|
2015-03-06 21:49:05 +08:00
|
|
|
const MCValue &MV, int64_t Offset,
|
|
|
|
MachineModuleInfo *MMI,
|
|
|
|
MCStreamer &Streamer) const override;
|
2010-02-16 06:35:59 +08:00
|
|
|
};
|
|
|
|
|
2020-09-03 22:11:56 +08:00
|
|
|
/// This implementation is used for X86 ELF targets that don't
|
2015-03-04 05:01:27 +08:00
|
|
|
/// have a further specialization.
|
|
|
|
class X86ELFTargetObjectFile : public TargetLoweringObjectFileELF {
|
2016-04-23 04:40:10 +08:00
|
|
|
public:
|
|
|
|
X86ELFTargetObjectFile() {
|
|
|
|
PLTRelativeVariantKind = MCSymbolRefExpr::VK_PLT;
|
|
|
|
}
|
2018-05-01 23:54:18 +08:00
|
|
|
/// Describe a TLS variable address within debug info.
|
2015-03-04 05:01:27 +08:00
|
|
|
const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
|
|
|
|
};
|
|
|
|
|
2009-09-16 09:46:41 +08:00
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|