Skip to content
MipsTargetAsmInfo.h 1.3 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"
#include "llvm/GlobalVariable.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.
  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;

    virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;

    private:
Bruno Cardoso Lopes's avatar
Bruno Cardoso Lopes committed
      const MipsSubtarget *Subtarget;
  };

} // namespace llvm

#endif