Use MCSectionELF in places we know we have an ELF section.
[oota-llvm.git] / include / llvm / MC / MCContext.h
index d3b38360e324d5f4cdcbfc9df5e340fdfecdbc34..417fe040d19caf2f297b9a61ef7f578d0e0c29df 100644 (file)
@@ -30,6 +30,7 @@ namespace llvm {
   class StringRef;
   class Twine;
   class MCSectionMachO;
+  class MCSectionELF;
 
   /// MCContext - Context object for machine code objects.  This class owns all
   /// of the sections that it creates.
@@ -138,9 +139,9 @@ namespace llvm {
       return getMachOSection(Segment, Section, TypeAndAttributes, 0, K);
     }
     
-    const MCSection *getELFSection(StringRef Section, unsigned Type,
-                                   unsigned Flags, SectionKind Kind,
-                                   unsigned EntrySize = 0);
+    const MCSectionELF *getELFSection(StringRef Section, unsigned Type,
+                                      unsigned Flags, SectionKind Kind,
+                                      unsigned EntrySize = 0);
 
     const MCSection *getCOFFSection(StringRef Section, unsigned Characteristics,
                                     int Selection, SectionKind Kind);