]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/llvm/lib/Target/AVR/AVRTargetObjectFile.h
Merge ^/vendor/llvm-project/release-10.x up to its last change (upstream
[FreeBSD/FreeBSD.git] / contrib / llvm-project / llvm / lib / Target / AVR / AVRTargetObjectFile.h
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
14 namespace llvm {
15
16 /// Lowering for an AVR ELF32 object file.
17 class AVRTargetObjectFile : public TargetLoweringObjectFileELF {
18   typedef TargetLoweringObjectFileELF Base;
19
20 public:
21   void Initialize(MCContext &ctx, const TargetMachine &TM) override;
22
23   MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
24                                     const TargetMachine &TM) const override;
25
26 private:
27   MCSection *ProgmemDataSection;
28 };
29
30 } // end namespace llvm
31
32 #endif // LLVM_AVR_TARGET_OBJECT_FILE_H