brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · e2cce9b Raw
52 lines · c
1//===-- llvm/Target/ARMTargetObjectFile.h - ARM Object Info -----*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H10#define LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H11 12#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"13#include "llvm/MC/MCExpr.h"14#include "llvm/MC/MCRegister.h"15 16namespace llvm {17 18class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF {19public:20  ARMElfTargetObjectFile();21  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;22 23  MCRegister getStaticBase() const override;24 25  const MCExpr *getIndirectSymViaGOTPCRel(const GlobalValue *GV,26                                          const MCSymbol *Sym,27                                          const MCValue &MV, int64_t Offset,28                                          MachineModuleInfo *MMI,29                                          MCStreamer &Streamer) const override;30 31  const MCExpr *getIndirectSymViaRWPI(const MCSymbol *Sym) const override;32 33  const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,34                                        unsigned Encoding,35                                        const TargetMachine &TM,36                                        MachineModuleInfo *MMI,37                                        MCStreamer &Streamer) const override;38 39  /// Describe a TLS variable address within debug info.40  const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;41 42  MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,43                                      const TargetMachine &TM) const override;44 45  MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,46                                    const TargetMachine &TM) const override;47};48 49} // end namespace llvm50 51#endif // LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H52