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