2009-08-02 08:34:36 +08:00
|
|
|
//===-- llvm/Target/ARMTargetObjectFile.h - ARM Object Info -----*- C++ -*-===//
|
|
|
|
//
|
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-08-02 08:34:36 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
|
|
|
|
#define LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
|
2009-08-02 08:34:36 +08:00
|
|
|
|
2010-02-16 06:37:53 +08:00
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
2017-01-31 08:56:17 +08:00
|
|
|
#include "llvm/MC/MCExpr.h"
|
2009-08-02 08:34:36 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
2009-08-11 23:33:49 +08:00
|
|
|
|
2010-03-10 02:31:07 +08:00
|
|
|
class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF {
|
|
|
|
public:
|
2016-04-23 04:40:10 +08:00
|
|
|
ARMElfTargetObjectFile()
|
2017-01-31 08:56:17 +08:00
|
|
|
: TargetLoweringObjectFileELF() {
|
2016-04-23 04:40:10 +08:00
|
|
|
PLTRelativeVariantKind = MCSymbolRefExpr::VK_ARM_PREL31;
|
|
|
|
}
|
2010-03-10 02:31:07 +08:00
|
|
|
|
2014-03-02 17:09:27 +08:00
|
|
|
void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
|
2010-10-12 07:01:44 +08:00
|
|
|
|
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;
|
2014-02-05 15:23:09 +08:00
|
|
|
|
2018-05-01 23:54:18 +08:00
|
|
|
/// Describe a TLS variable address within debug info.
|
2014-03-02 17:09:27 +08:00
|
|
|
const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
|
2016-12-15 15:59:08 +08:00
|
|
|
|
|
|
|
MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
|
|
|
|
const TargetMachine &TM) const override;
|
|
|
|
|
|
|
|
MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
|
|
|
|
const TargetMachine &TM) const override;
|
2010-03-10 02:31:07 +08:00
|
|
|
};
|
|
|
|
|
2009-08-02 08:34:36 +08:00
|
|
|
} // end namespace llvm
|
|
|
|
|
2017-01-31 08:56:17 +08:00
|
|
|
#endif // LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
|