untangle a TargetAsmInfo hack where ELFTargetAsmInfo would create a
[oota-llvm.git] / lib / Target / Sparc / SparcTargetAsmInfo.h
1 //=====-- SparcTargetAsmInfo.h - Sparc 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 SparcTargetAsmInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef SPARCTARGETASMINFO_H
15 #define SPARCTARGETASMINFO_H
16
17 #include "llvm/Target/ELFTargetAsmInfo.h"
18
19 namespace llvm {
20
21   // Forward declaration.
22   class TargetMachine;
23
24   struct SparcELFTargetAsmInfo : public ELFTargetAsmInfo {
25     explicit SparcELFTargetAsmInfo(const TargetMachine &TM);
26
27     virtual void getSectionFlags(unsigned Flags,
28                                  SmallVectorImpl<char> &Str) const;
29
30   };
31
32 } // namespace llvm
33
34 #endif