mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-29 13:29:28 +00:00
Added ConstantPool support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53951 91177308-0d34-0410-b5e6-96231b3b80d8
46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
//=====-- 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
|
|
|
|
#include "MipsSubtarget.h"
|
|
#include "llvm/DerivedTypes.h"
|
|
#include "llvm/GlobalVariable.h"
|
|
#include "llvm/Target/TargetAsmInfo.h"
|
|
#include "llvm/Target/TargetOptions.h"
|
|
#include "llvm/Target/ELFTargetAsmInfo.h"
|
|
|
|
namespace llvm {
|
|
|
|
// Forward declaration.
|
|
class MipsTargetMachine;
|
|
|
|
struct MipsTargetAsmInfo : public ELFTargetAsmInfo {
|
|
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:
|
|
const MipsSubtarget *Subtarget;
|
|
};
|
|
|
|
} // namespace llvm
|
|
|
|
#endif
|