2011-04-15 23:51:11 +02:00
|
|
|
//===-- llvm/Target/MipsTargetObjectFile.h - Mips Object Info ---*- C++ -*-===//
|
2009-08-13 08:28:06 +02:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
2011-04-15 23:51:11 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
2009-08-13 08:28:06 +02:00
|
|
|
|
|
|
|
#ifndef LLVM_TARGET_MIPS_TARGETOBJECTFILE_H
|
|
|
|
#define LLVM_TARGET_MIPS_TARGETOBJECTFILE_H
|
|
|
|
|
2010-02-15 23:37:53 +01:00
|
|
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
|
2009-08-13 08:28:06 +02:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class MipsTargetObjectFile : public TargetLoweringObjectFileELF {
|
|
|
|
const MCSection *SmallDataSection;
|
|
|
|
const MCSection *SmallBSSSection;
|
|
|
|
public:
|
2011-03-04 18:51:39 +01:00
|
|
|
|
2009-08-13 08:28:06 +02:00
|
|
|
void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
|
|
|
|
2011-03-04 18:51:39 +01:00
|
|
|
|
2009-08-13 08:28:06 +02:00
|
|
|
/// IsGlobalInSmallSection - Return true if this global address should be
|
|
|
|
/// placed into small data/bss section.
|
|
|
|
bool IsGlobalInSmallSection(const GlobalValue *GV,
|
2011-04-15 23:51:11 +02:00
|
|
|
const TargetMachine &TM, SectionKind Kind)const;
|
2009-08-13 08:28:06 +02:00
|
|
|
bool IsGlobalInSmallSection(const GlobalValue *GV,
|
2011-03-04 18:51:39 +01:00
|
|
|
const TargetMachine &TM) const;
|
|
|
|
|
2009-08-13 08:28:06 +02:00
|
|
|
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
|
|
|
SectionKind Kind,
|
|
|
|
Mangler *Mang,
|
|
|
|
const TargetMachine &TM) const;
|
2011-03-04 18:51:39 +01:00
|
|
|
|
2009-08-13 08:28:06 +02:00
|
|
|
// TODO: Classify globals as mips wishes.
|
|
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|