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