Update comments.
[llvm/msp430.git] / lib / Target / Mips / MipsTargetAsmInfo.h
blob2b5a739e7219ea9c271ed536a75a7b0058bfe577
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.
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"
23 namespace llvm {
25 // Forward declaration.
26 class GlobalValue;
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.
39 virtual unsigned
40 SectionFlagsForGlobal(const GlobalValue *GV = NULL,
41 const char* name = NULL) const;
43 virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
45 private:
46 const MipsSubtarget *Subtarget;
49 } // namespace llvm
51 #endif