Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 1 | //=====-- MipsTargetAsmInfo.h - Mips asm properties -----------*- C++ -*--====// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 4ee451d | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 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 "llvm/Target/TargetAsmInfo.h" |
Anton Korobeynikov | ae408e6 | 2008-07-19 13:16:11 +0000 | [diff] [blame] | 18 | #include "llvm/Target/ELFTargetAsmInfo.h" |
Bruno Cardoso Lopes | feb95cc | 2008-07-22 15:34:27 +0000 | [diff] [blame] | 19 | #include "llvm/DerivedTypes.h" |
| 20 | #include "llvm/GlobalVariable.h" |
| 21 | #include "llvm/Target/TargetOptions.h" |
Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 22 | |
| 23 | namespace llvm { |
| 24 | |
| 25 | // Forward declaration. |
| 26 | class MipsTargetMachine; |
| 27 | |
Anton Korobeynikov | ae408e6 | 2008-07-19 13:16:11 +0000 | [diff] [blame] | 28 | struct MipsTargetAsmInfo : public ELFTargetAsmInfo { |
Dan Gohman | 677ccc6 | 2007-09-25 20:27:06 +0000 | [diff] [blame] | 29 | explicit MipsTargetAsmInfo(const MipsTargetMachine &TM); |
Bruno Cardoso Lopes | feb95cc | 2008-07-22 15:34:27 +0000 | [diff] [blame] | 30 | |
| 31 | /// SectionKindForGlobal - This hook allows the target to select proper |
| 32 | /// section kind used for global emission. |
| 33 | virtual SectionKind::Kind |
| 34 | SectionKindForGlobal(const GlobalValue *GV) const; |
| 35 | |
| 36 | virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const; |
| 37 | |
| 38 | private: |
| 39 | const MipsTargetMachine *MipsTM; |
| 40 | |
Bruno Cardoso Lopes | 972f589 | 2007-06-06 07:42:06 +0000 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | } // namespace llvm |
| 44 | |
| 45 | #endif |