1. Make MCSection an abstract class.
[oota-llvm.git] / lib / Target / PIC16 / PIC16Section.h
index 08801412b746f17d3cb58ce0c067d27484c067b3..4c2ae05707c5c3fa872c0307c2611c4abf5a2b84 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "llvm/MC/MCSection.h"
 #include "llvm/MC/MCContext.h"
+#include "llvm/Support/raw_ostream.h"
 
 namespace llvm {
 
@@ -28,9 +29,14 @@ namespace llvm {
                                   SectionKind K, MCContext &Ctx) {
       return new (Ctx) MCSectionPIC16(Name, IsDirective, K, Ctx);
     }
+    
+    
+    virtual void PrintSwitchToSection(const TargetAsmInfo &TAI,
+                                      raw_ostream &OS) const {
+      OS << getName() << '\n';
+    }
+
   };
-  
-  
 
 } // end namespace llvm