ARMTargetObjectFile.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
  9. #define LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H
  10. #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
  11. #include "llvm/MC/MCExpr.h"
  12. #include "llvm/MC/MCRegister.h"
  13. namespace llvm {
  14. class ARMElfTargetObjectFile : public TargetLoweringObjectFileELF {
  15. public:
  16. ARMElfTargetObjectFile() {
  17. PLTRelativeVariantKind = MCSymbolRefExpr::VK_ARM_PREL31;
  18. }
  19. void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
  20. MCRegister getStaticBase() const override;
  21. const MCExpr *getIndirectSymViaRWPI(const MCSymbol *Sym) const override;
  22. const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
  23. unsigned Encoding,
  24. const TargetMachine &TM,
  25. MachineModuleInfo *MMI,
  26. MCStreamer &Streamer) const override;
  27. /// Describe a TLS variable address within debug info.
  28. const MCExpr *getDebugThreadLocalSymbol(const MCSymbol *Sym) const override;
  29. MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
  30. const TargetMachine &TM) const override;
  31. MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
  32. const TargetMachine &TM) const override;
  33. };
  34. } // end namespace llvm
  35. #endif // LLVM_LIB_TARGET_ARM_ARMTARGETOBJECTFILE_H