diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-05 02:41:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-05 02:41:43 +0000 |
commit | 1279b7c2a9849b499d5997d7efb5c0d6e902ca62 (patch) | |
tree | 02594f48b4bec70fe3cc576ecc92bfdf14983001 | |
parent | b56dcc453e1bd3fc75e4393b3b1bd1b07d86903e (diff) |
move getSectionForFunction to AsmPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30734 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 6 | ||||
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 4c34dcd21d..7c4d4eeb44 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 003f00a7a5..511f5822f6 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. // |