2012-02-18 20:03:15 +08:00
|
|
|
//===-- HexagonTargetAsmInfo.h - Hexagon asm properties --------*- C++ -*--===//
|
2011-12-13 05:14:40 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_HEXAGON_HEXAGONTARGETOBJECTFILE_H
|
|
|
|
#define LLVM_LIB_TARGET_HEXAGON_HEXAGONTARGETOBJECTFILE_H
|
2011-12-13 05:14:40 +08:00
|
|
|
|
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
|
|
|
#include "llvm/MC/MCSectionELF.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class HexagonTargetObjectFile : public TargetLoweringObjectFileELF {
|
|
|
|
const MCSectionELF *SmallDataSection;
|
|
|
|
const MCSectionELF *SmallBSSSection;
|
|
|
|
public:
|
2014-03-02 17:09:27 +08:00
|
|
|
void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
|
2011-12-13 05:14:40 +08:00
|
|
|
|
|
|
|
/// IsGlobalInSmallSection - Return true if this global address should be
|
|
|
|
/// placed into small data/bss section.
|
|
|
|
bool IsGlobalInSmallSection(const GlobalValue *GV,
|
|
|
|
const TargetMachine &TM,
|
|
|
|
SectionKind Kind) const;
|
|
|
|
bool IsGlobalInSmallSection(const GlobalValue *GV,
|
|
|
|
const TargetMachine &TM) const;
|
|
|
|
|
2013-05-08 03:53:00 +08:00
|
|
|
bool IsSmallDataEnabled () const;
|
2014-02-08 14:07:27 +08:00
|
|
|
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
2014-03-02 17:09:27 +08:00
|
|
|
SectionKind Kind, Mangler &Mang,
|
|
|
|
const TargetMachine &TM) const override;
|
2011-12-13 05:14:40 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|