move getSectionForFunction to AsmPrinter.
authorChris Lattner <sabre@nondot.org>
Thu, 5 Oct 2006 02:41:43 +0000 (02:41 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 5 Oct 2006 02:41:43 +0000 (02:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30734 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h
include/llvm/Target/TargetAsmInfo.h

index 4c34dcd21dd7a0811d2e1b58dbbafd964ff65620..7c4d4eeb4493807c1644b796da597c5e7cc7f328 100644 (file)
@@ -132,6 +132,12 @@ namespace llvm {
                                        unsigned AsmVariant, 
                                        const char *ExtraCode);
     
+    /// getSectionForFunction - Return the section that we should emit the
+    /// specified function body into.  This defaults to 'TextSection'.  This
+    /// should most likely be overridden by the target to put linkonce/weak
+    /// functions into special sections.
+    virtual std::string getSectionForFunction(const Function &F) const;
+    
     /// SetupMachineFunction - This should be called when a new MachineFunction
     /// is being processed from runOnMachineFunction.
     void SetupMachineFunction(MachineFunction &MF);
index 003f00a7a5195f76f649374c4b4b4c8101990a7d..511f5822f6c3a7fc501d5ec70525ac5725081cf5 100644 (file)
@@ -266,14 +266,6 @@ namespace llvm {
     TargetAsmInfo();
     virtual ~TargetAsmInfo();
 
-    /// getSectionForFunction - Return the section that we should emit the
-    /// specified function body into.  This defaults to 'TextSection'.  This
-    /// should most likely be overridden by the target to put linkonce/weak
-    /// functions into special sections.
-    virtual const char *getSectionForFunction(const Function &F) const {
-      return TextSection;
-    }
-    
     //
     // Accessors.
     //