Use crazy template-based inheritance instead of virtual one.
[oota-llvm.git] / include / llvm / Target / TargetAsmInfo.h
index 0d5d7cd2c40b8cc94ea9355103f1bae1cdbf2725..e3a8a5720e4be3a5ca26714c8b0a638308d8cc46 100644 (file)
@@ -124,6 +124,7 @@ namespace llvm {
   private:
     mutable StringMap<Section> Sections;
     mutable SectionFlags::FlagsStringsMapType FlagsStrings;
+    void fillDefaultValues();
   protected:
     //===------------------------------------------------------------------===//
     // Properties to be set by the target writer, used to configure asm printer.
@@ -146,8 +147,7 @@ namespace llvm {
     /// ReadOnlySection - This is the directive that is emitted to switch to a
     /// read-only section for constant data (e.g. data declared const,
     /// jump tables).
-    const char *ReadOnlySection;          // Defaults to NULL
-    const Section *ReadOnlySection_;
+    const Section *ReadOnlySection;       // Defaults to NULL
 
     /// SmallDataSection - This is the directive that is emitted to switch to a
     /// small data section.
@@ -511,6 +511,7 @@ namespace llvm {
 
   public:
     TargetAsmInfo();
+    TargetAsmInfo(const TargetMachine &TM);
     virtual ~TargetAsmInfo();
 
     const Section* getNamedSection(const char *Name,
@@ -597,12 +598,9 @@ namespace llvm {
     const Section *getBSSSection_() const {
       return BSSSection_;
     }
-    const char *getReadOnlySection() const {
+    const Section *getReadOnlySection() const {
       return ReadOnlySection;
     }
-    const Section *getReadOnlySection_() const {
-      return ReadOnlySection_;
-    }
     const Section *getSmallDataSection() const {
       return SmallDataSection;
     }