1 //=====-- MipsTargetAsmInfo.h - Mips asm properties -----------*- C++ -*--====//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declaration of the MipsTargetAsmInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef MIPSTARGETASMINFO_H
15 #define MIPSTARGETASMINFO_H
17 #include "MipsSubtarget.h"
18 #include "llvm/DerivedTypes.h"
19 #include "llvm/Target/TargetAsmInfo.h"
20 #include "llvm/Target/TargetOptions.h"
21 #include "llvm/Target/ELFTargetAsmInfo.h"
25 // Forward declaration.
27 class MipsTargetMachine;
29 struct MipsTargetAsmInfo : public ELFTargetAsmInfo {
30 explicit MipsTargetAsmInfo(const MipsTargetMachine &TM);
32 /// SectionKindForGlobal - This hook allows the target to select proper
33 /// section kind used for global emission.
34 virtual SectionKind::Kind
35 SectionKindForGlobal(const GlobalValue *GV) const;
37 /// SectionFlagsForGlobal - This hook allows the target to select proper
38 /// section flags either for given global or for section.
40 SectionFlagsForGlobal(const GlobalValue *GV = NULL,
41 const char* name = NULL) const;
43 virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
46 const MipsSubtarget *Subtarget;