Undo most of r54519.
[oota-llvm.git] / lib / Target / Mips / MipsTargetAsmInfo.h
1 //=====-- MipsTargetAsmInfo.h - Mips asm properties -----------*- C++ -*--====//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declaration of the MipsTargetAsmInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef MIPSTARGETASMINFO_H
15 #define MIPSTARGETASMINFO_H
16
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"
22
23 namespace llvm {
24
25   // Forward declaration.
26   class GlobalValue;
27   class MipsTargetMachine;
28
29   struct MipsTargetAsmInfo : public ELFTargetAsmInfo {
30     explicit MipsTargetAsmInfo(const MipsTargetMachine &TM);
31
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;
36
37     /// SectionFlagsForGlobal - This hook allows the target to select proper
38     /// section flags either for given global or for section.
39     virtual unsigned
40     SectionFlagsForGlobal(const GlobalValue *GV = NULL,
41                           const char* name = NULL) const;
42
43     virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
44
45     private:
46       const MipsSubtarget *Subtarget;
47   };
48
49 } // namespace llvm
50
51 #endif