Dylan McKay | 5c96de3 | 2016-01-07 10:53:15 +0000 | [diff] [blame] | 1 | //===-- AVRTargetObjectFile.h - AVR Object Info -----------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef LLVM_AVR_TARGET_OBJECT_FILE_H |
| 11 | #define LLVM_AVR_TARGET_OBJECT_FILE_H |
| 12 | |
| 13 | #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" |
| 14 | |
| 15 | namespace llvm { |
Dylan McKay | d56676e | 2016-05-18 09:43:01 +0000 | [diff] [blame] | 16 | |
| 17 | /// Lowering for an AVR ELF32 object file. |
Dylan McKay | 5c96de3 | 2016-01-07 10:53:15 +0000 | [diff] [blame] | 18 | class AVRTargetObjectFile : public TargetLoweringObjectFileELF { |
| 19 | typedef TargetLoweringObjectFileELF Base; |
| 20 | |
| 21 | public: |
| 22 | void Initialize(MCContext &ctx, const TargetMachine &TM) override; |
| 23 | |
Peter Collingbourne | 6733564 | 2016-10-24 19:23:39 +0000 | [diff] [blame] | 24 | MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, |
Dylan McKay | 5c96de3 | 2016-01-07 10:53:15 +0000 | [diff] [blame] | 25 | const TargetMachine &TM) const override; |
| 26 | |
| 27 | private: |
| 28 | MCSection *ProgmemDataSection; |
| 29 | }; |
| 30 | |
| 31 | } // end namespace llvm |
| 32 | |
| 33 | #endif // LLVM_AVR_TARGET_OBJECT_FILE_H |