1 //===-- AVRTargetObjectFile.h - AVR Object Info -----------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_AVR_TARGET_OBJECT_FILE_H
10 #define LLVM_AVR_TARGET_OBJECT_FILE_H
12 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
16 /// Lowering for an AVR ELF32 object file.
17 class AVRTargetObjectFile
: public TargetLoweringObjectFileELF
{
18 typedef TargetLoweringObjectFileELF Base
;
21 void Initialize(MCContext
&ctx
, const TargetMachine
&TM
) override
;
23 MCSection
*SelectSectionForGlobal(const GlobalObject
*GO
, SectionKind Kind
,
24 const TargetMachine
&TM
) const override
;
27 MCSection
*ProgmemDataSection
;
28 MCSection
*Progmem1DataSection
;
29 MCSection
*Progmem2DataSection
;
30 MCSection
*Progmem3DataSection
;
31 MCSection
*Progmem4DataSection
;
32 MCSection
*Progmem5DataSection
;
35 } // end namespace llvm
37 #endif // LLVM_AVR_TARGET_OBJECT_FILE_H