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
|
|
|
|
|
2008-07-23 18:01:50 +02:00
|
|
|
#include "MipsSubtarget.h"
|
2008-07-22 17:34:27 +02:00
|
|
|
#include "llvm/DerivedTypes.h"
|
2008-07-23 18:01:50 +02:00
|
|
|
#include "llvm/Target/TargetAsmInfo.h"
|
2008-07-22 17:34:27 +02:00
|
|
|
#include "llvm/Target/TargetOptions.h"
|
2008-07-23 18:01:50 +02:00
|
|
|
#include "llvm/Target/ELFTargetAsmInfo.h"
|
2007-06-06 09:42:06 +02:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
// Forward declaration.
|
2008-08-05 17:32:23 +02:00
|
|
|
class GlobalValue;
|
2007-06-06 09:42:06 +02:00
|
|
|
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;
|
|
|
|
|
2008-07-30 19:04:04 +02: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-08-08 19:56:50 +02:00
|
|
|
virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
|
2008-07-22 17:34:27 +02:00
|
|
|
|
|
|
|
private:
|
2008-07-23 18:01:50 +02:00
|
|
|
const MipsSubtarget *Subtarget;
|
2007-06-06 09:42:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|