xref: /aosp_15_r20/external/llvm/lib/Target/AVR/AVRTargetObjectFile.h (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker //===-- AVRTargetObjectFile.h - AVR Object Info -----------------*- C++ -*-===//
2*9880d681SAndroid Build Coastguard Worker //
3*9880d681SAndroid Build Coastguard Worker //                     The LLVM Compiler Infrastructure
4*9880d681SAndroid Build Coastguard Worker //
5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source
6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details.
7*9880d681SAndroid Build Coastguard Worker //
8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
9*9880d681SAndroid Build Coastguard Worker 
10*9880d681SAndroid Build Coastguard Worker #ifndef LLVM_AVR_TARGET_OBJECT_FILE_H
11*9880d681SAndroid Build Coastguard Worker #define LLVM_AVR_TARGET_OBJECT_FILE_H
12*9880d681SAndroid Build Coastguard Worker 
13*9880d681SAndroid Build Coastguard Worker #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
14*9880d681SAndroid Build Coastguard Worker 
15*9880d681SAndroid Build Coastguard Worker namespace llvm {
16*9880d681SAndroid Build Coastguard Worker 
17*9880d681SAndroid Build Coastguard Worker /// Lowering for an AVR ELF32 object file.
18*9880d681SAndroid Build Coastguard Worker class AVRTargetObjectFile : public TargetLoweringObjectFileELF {
19*9880d681SAndroid Build Coastguard Worker   typedef TargetLoweringObjectFileELF Base;
20*9880d681SAndroid Build Coastguard Worker 
21*9880d681SAndroid Build Coastguard Worker public:
22*9880d681SAndroid Build Coastguard Worker   void Initialize(MCContext &ctx, const TargetMachine &TM) override;
23*9880d681SAndroid Build Coastguard Worker 
24*9880d681SAndroid Build Coastguard Worker   MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
25*9880d681SAndroid Build Coastguard Worker                                     Mangler &Mang,
26*9880d681SAndroid Build Coastguard Worker                                     const TargetMachine &TM) const override;
27*9880d681SAndroid Build Coastguard Worker 
28*9880d681SAndroid Build Coastguard Worker private:
29*9880d681SAndroid Build Coastguard Worker   MCSection *ProgmemDataSection;
30*9880d681SAndroid Build Coastguard Worker };
31*9880d681SAndroid Build Coastguard Worker 
32*9880d681SAndroid Build Coastguard Worker } // end namespace llvm
33*9880d681SAndroid Build Coastguard Worker 
34*9880d681SAndroid Build Coastguard Worker #endif // LLVM_AVR_TARGET_OBJECT_FILE_H
35