ARMTargetObjectFile.h 1.7 KB

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