Skip to content
MipsTargetAsmInfo.h 1.29 KiB
Newer Older
//=====-- MipsTargetAsmInfo.h - Mips asm properties -----------*- C++ -*--====//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the declaration of the MipsTargetAsmInfo class.
//
//===----------------------------------------------------------------------===//

#ifndef MIPSTARGETASMINFO_H
#define MIPSTARGETASMINFO_H

Bruno Cardoso Lopes's avatar
Bruno Cardoso Lopes committed
#include "MipsSubtarget.h"
#include "llvm/DerivedTypes.h"
Bruno Cardoso Lopes's avatar
Bruno Cardoso Lopes committed
#include "llvm/Target/TargetAsmInfo.h"
#include "llvm/Target/TargetOptions.h"
Bruno Cardoso Lopes's avatar
Bruno Cardoso Lopes committed
#include "llvm/Target/ELFTargetAsmInfo.h"

namespace llvm {

  // Forward declaration.
Dan Gohman's avatar
Dan Gohman committed
  class GlobalValue;
  class MipsTargetMachine;

  struct MipsTargetAsmInfo : public ELFTargetAsmInfo {
Dan Gohman's avatar
Dan Gohman committed
    explicit MipsTargetAsmInfo(const MipsTargetMachine &TM);

    /// SectionKindForGlobal - This hook allows the target to select proper
    /// section kind used for global emission.
    virtual SectionKind::Kind
    SectionKindForGlobal(const GlobalValue *GV) const;

Evan Cheng's avatar
Evan Cheng committed
    virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
Bruno Cardoso Lopes's avatar
Bruno Cardoso Lopes committed
      const MipsSubtarget *Subtarget;
  };

} // namespace llvm

#endif