2012-02-18 12:03:15 +00:00
|
|
|
//===-- HexagonTargetAsmInfo.h - Hexagon asm properties --------*- C++ -*--===//
|
2011-12-12 21:14:40 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef HexagonTARGETOBJECTFILE_H
|
|
|
|
#define HexagonTARGETOBJECTFILE_H
|
|
|
|
|
|
|
|
#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 09:09:27 +00:00
|
|
|
void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
|
2011-12-12 21:14:40 +00: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-07 19:53:00 +00:00
|
|
|
bool IsSmallDataEnabled () const;
|
2014-02-08 06:07:27 +00:00
|
|
|
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
2014-03-02 09:09:27 +00:00
|
|
|
SectionKind Kind, Mangler &Mang,
|
|
|
|
const TargetMachine &TM) const override;
|
2011-12-12 21:14:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|