2007-06-06 15:42:06 +08:00
|
|
|
//=====-- MipsTargetAsmInfo.h - Mips asm properties -----------*- C++ -*--====//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-30 04:36:04 +08:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-06-06 15:42:06 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declaration of the MipsTargetAsmInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef MIPSTARGETASMINFO_H
|
|
|
|
#define MIPSTARGETASMINFO_H
|
|
|
|
|
2008-07-24 00:01:50 +08:00
|
|
|
#include "MipsSubtarget.h"
|
2008-07-22 23:34:27 +08:00
|
|
|
#include "llvm/DerivedTypes.h"
|
|
|
|
#include "llvm/GlobalVariable.h"
|
2008-07-24 00:01:50 +08:00
|
|
|
#include "llvm/Target/TargetAsmInfo.h"
|
2008-07-22 23:34:27 +08:00
|
|
|
#include "llvm/Target/TargetOptions.h"
|
2008-07-24 00:01:50 +08:00
|
|
|
#include "llvm/Target/ELFTargetAsmInfo.h"
|
2007-06-06 15:42:06 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
// Forward declaration.
|
|
|
|
class MipsTargetMachine;
|
|
|
|
|
2008-07-19 21:16:11 +08:00
|
|
|
struct MipsTargetAsmInfo : public ELFTargetAsmInfo {
|
2007-09-26 04:27:06 +08:00
|
|
|
explicit MipsTargetAsmInfo(const MipsTargetMachine &TM);
|
2008-07-22 23:34:27 +08: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:
|
2008-07-24 00:01:50 +08:00
|
|
|
const MipsSubtarget *Subtarget;
|
2007-06-06 15:42:06 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|