blob: 53d8510d9a21db88ba219cd379593ad61908fca4 [file] [log] [blame]
Dylan McKay5c96de32016-01-07 10:53:15 +00001//===-- AVRTargetObjectFile.h - AVR Object Info -----------------*- C++ -*-===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Dylan McKay5c96de32016-01-07 10:53:15 +00006//
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 {
Dylan McKayd56676e2016-05-18 09:43:01 +000015
16/// Lowering for an AVR ELF32 object file.
Dylan McKay5c96de32016-01-07 10:53:15 +000017class AVRTargetObjectFile : public TargetLoweringObjectFileELF {
18 typedef TargetLoweringObjectFileELF Base;
19
20public:
21 void Initialize(MCContext &ctx, const TargetMachine &TM) override;
22
Peter Collingbourne67335642016-10-24 19:23:39 +000023 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
Dylan McKay5c96de32016-01-07 10:53:15 +000024 const TargetMachine &TM) const override;
25
26private:
27 MCSection *ProgmemDataSection;
28};
29
30} // end namespace llvm
31
32#endif // LLVM_AVR_TARGET_OBJECT_FILE_H