1//===-- AVRTargetObjectFile.h - AVR 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
9#ifndef LLVM_AVR_TARGET_OBJECT_FILE_H
10#define LLVM_AVR_TARGET_OBJECT_FILE_H
11
12#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
13
14namespace llvm {
15
16/// Lowering for an AVR ELF32 object file.
17class AVRTargetObjectFile : public TargetLoweringObjectFileELF {
18 typedef TargetLoweringObjectFileELF Base;
19
20public:
21 void initialize(MCContext &ctx, const TargetMachine &TM,
22 const Module &M) override;
23
24 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
25 const TargetMachine &TM) const override;
26
27private:
28 MCSection *ProgmemDataSection;
29 MCSection *Progmem1DataSection;
30 MCSection *Progmem2DataSection;
31 MCSection *Progmem3DataSection;
32 MCSection *Progmem4DataSection;
33 MCSection *Progmem5DataSection;
34};
35
36} // end namespace llvm
37
38#endif // LLVM_AVR_TARGET_OBJECT_FILE_H
39