2016-01-07 18:53:15 +08:00
|
|
|
//===-- AVRTargetObjectFile.h - AVR Object Info -----------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_AVR_TARGET_OBJECT_FILE_H
|
|
|
|
#define LLVM_AVR_TARGET_OBJECT_FILE_H
|
|
|
|
|
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2016-05-18 17:43:01 +08:00
|
|
|
|
|
|
|
/// Lowering for an AVR ELF32 object file.
|
2016-01-07 18:53:15 +08:00
|
|
|
class AVRTargetObjectFile : public TargetLoweringObjectFileELF {
|
|
|
|
typedef TargetLoweringObjectFileELF Base;
|
|
|
|
|
|
|
|
public:
|
|
|
|
void Initialize(MCContext &ctx, const TargetMachine &TM) override;
|
|
|
|
|
2016-10-25 03:23:39 +08:00
|
|
|
MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
|
2016-01-07 18:53:15 +08:00
|
|
|
const TargetMachine &TM) const override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
MCSection *ProgmemDataSection;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif // LLVM_AVR_TARGET_OBJECT_FILE_H
|