2007-06-06 09:42:06 +02:00
|
|
|
//=====-- MipsTargetAsmInfo.h - Mips asm properties -----------*- C++ -*--====//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 21:36:04 +01:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-06-06 09:42:06 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declaration of the MipsTargetAsmInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef MIPSTARGETASMINFO_H
|
|
|
|
#define MIPSTARGETASMINFO_H
|
|
|
|
|
|
|
|
#include "llvm/Target/TargetAsmInfo.h"
|
2008-07-19 15:16:11 +02:00
|
|
|
#include "llvm/Target/ELFTargetAsmInfo.h"
|
2008-07-22 17:34:27 +02:00
|
|
|
#include "llvm/DerivedTypes.h"
|
|
|
|
#include "llvm/GlobalVariable.h"
|
|
|
|
#include "llvm/Target/TargetOptions.h"
|
2007-06-06 09:42:06 +02:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
// Forward declaration.
|
|
|
|
class MipsTargetMachine;
|
|
|
|
|
2008-07-19 15:16:11 +02:00
|
|
|
struct MipsTargetAsmInfo : public ELFTargetAsmInfo {
|
2007-09-25 22:27:06 +02:00
|
|
|
explicit MipsTargetAsmInfo(const MipsTargetMachine &TM);
|
2008-07-22 17:34:27 +02:00
|
|
|
|
|
|
|
/// SectionKindForGlobal - This hook allows the target to select proper
|
|
|
|
/// section kind used for global emission.
|
|
|
|
virtual SectionKind::Kind
|
|
|
|
SectionKindForGlobal(const GlobalValue *GV) const;
|
|
|
|
|
|
|
|
virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
const MipsTargetMachine *MipsTM;
|
|
|
|
|
2007-06-06 09:42:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|