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 /include/llvm/CodeGen | |
| parent | b56dcc453e1bd3fc75e4393b3b1bd1b07d86903e (diff) | |
move getSectionForFunction to AsmPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
| -rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 6 |
1 files changed, 6 insertions, 0 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); |
