Dylan McKay | 5c96de3 | 2016-01-07 10:53:15 +0000 | [diff] [blame] | 1 | //===-- AVRTargetObjectFile.h - AVR Object Info -----------------*- C++ -*-===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 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 |
Dylan McKay | 5c96de3 | 2016-01-07 10:53:15 +0000 | [diff] [blame] | 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 { |
Dylan McKay | d56676e | 2016-05-18 09:43:01 +0000 | [diff] [blame] | 15 | |
| 16 | /// Lowering for an AVR ELF32 object file. |
Dylan McKay | 5c96de3 | 2016-01-07 10:53:15 +0000 | [diff] [blame] | 17 | class AVRTargetObjectFile : public TargetLoweringObjectFileELF { |
| 18 | typedef TargetLoweringObjectFileELF Base; |
| 19 | |
| 20 | public: |
| 21 | void Initialize(MCContext &ctx, const TargetMachine &TM) override; |
| 22 | |
Peter Collingbourne | 6733564 | 2016-10-24 19:23:39 +0000 | [diff] [blame] | 23 | MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, |
Dylan McKay | 5c96de3 | 2016-01-07 10:53:15 +0000 | [diff] [blame] | 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 |