10b57cec5SDimitry Andric //===-- AVRTargetObjectFile.h - AVR Object Info -----------------*- C++ -*-===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric 90b57cec5SDimitry Andric #ifndef LLVM_AVR_TARGET_OBJECT_FILE_H 100b57cec5SDimitry Andric #define LLVM_AVR_TARGET_OBJECT_FILE_H 110b57cec5SDimitry Andric 120b57cec5SDimitry Andric #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" 130b57cec5SDimitry Andric 140b57cec5SDimitry Andric namespace llvm { 150b57cec5SDimitry Andric 160b57cec5SDimitry Andric /// Lowering for an AVR ELF32 object file. 170b57cec5SDimitry Andric class AVRTargetObjectFile : public TargetLoweringObjectFileELF { 180b57cec5SDimitry Andric typedef TargetLoweringObjectFileELF Base; 190b57cec5SDimitry Andric 200b57cec5SDimitry Andric public: 210b57cec5SDimitry Andric void Initialize(MCContext &ctx, const TargetMachine &TM) override; 220b57cec5SDimitry Andric 230b57cec5SDimitry Andric MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, 240b57cec5SDimitry Andric const TargetMachine &TM) const override; 250b57cec5SDimitry Andric 260b57cec5SDimitry Andric private: 270b57cec5SDimitry Andric MCSection *ProgmemDataSection; 28*04eeddc0SDimitry Andric MCSection *Progmem1DataSection; 29*04eeddc0SDimitry Andric MCSection *Progmem2DataSection; 30*04eeddc0SDimitry Andric MCSection *Progmem3DataSection; 31*04eeddc0SDimitry Andric MCSection *Progmem4DataSection; 32*04eeddc0SDimitry Andric MCSection *Progmem5DataSection; 330b57cec5SDimitry Andric }; 340b57cec5SDimitry Andric 350b57cec5SDimitry Andric } // end namespace llvm 360b57cec5SDimitry Andric 370b57cec5SDimitry Andric #endif // LLVM_AVR_TARGET_OBJECT_FILE_H 38