untangle a TargetAsmInfo hack where ELFTargetAsmInfo would create a
[oota-llvm.git] / lib / Target / Sparc / SparcTargetAsmInfo.h
index 854390ce64a0150f41c75d214d308533bf5e97d8..cf65c1f914e3e64ccc4ee09b9807f3c524360900 100644 (file)
 #ifndef SPARCTARGETASMINFO_H
 #define SPARCTARGETASMINFO_H
 
-#include "llvm/Target/TargetAsmInfo.h"
+#include "llvm/Target/ELFTargetAsmInfo.h"
 
 namespace llvm {
 
   // Forward declaration.
-  class SparcTargetMachine;
+  class TargetMachine;
 
-  struct SparcTargetAsmInfo : public TargetAsmInfo {
-    explicit SparcTargetAsmInfo(const SparcTargetMachine &TM);
-  };
+  struct SparcELFTargetAsmInfo : public ELFTargetAsmInfo {
+    explicit SparcELFTargetAsmInfo(const TargetMachine &TM);
+
+    virtual void getSectionFlags(unsigned Flags,
+                                 SmallVectorImpl<char> &Str) const;
 
+  };
 
 } // namespace llvm