Move actual section printing stuff to AsmPrinter from TAI reducing heap traffic.
[oota-llvm.git] / include / llvm / Target / TargetAsmInfo.h
index 8305e54f9e8ddc12dfd77e503e625a07c2af89fa..49a99c509e60e6e8e7faa00608707b8654b33a97 100644 (file)
@@ -113,6 +113,7 @@ namespace llvm {
   public:
     bool isNamed() const { return Flags & SectionFlags::Named; }
     unsigned getEntitySize() const { return (Flags >> 24) & 0xFF; }
+
     const std::string& getName() const { return Name; }
     unsigned getFlags() const { return Flags; }
   };
@@ -573,7 +574,7 @@ namespace llvm {
 
     /// SectionForGlobal - This hooks returns proper section name for given
     /// global with all necessary flags and marks.
-    virtual std::string SectionForGlobal(const GlobalValue *GV) const;
+    virtual const Section* SectionForGlobal(const GlobalValue *GV) const;
 
     // Helper methods for SectionForGlobal
     virtual std::string UniqueSectionForGlobal(const GlobalValue* GV,