From: Chris Lattner Date: Thu, 5 Oct 2006 02:41:43 +0000 (+0000) Subject: move getSectionForFunction to AsmPrinter. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1279b7c2a9849b499d5997d7efb5c0d6e902ca62;p=oota-llvm.git move getSectionForFunction to AsmPrinter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30734 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 4c34dcd21dd..7c4d4eeb449 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -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); diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 003f00a7a51..511f5822f6c 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -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. //