move getSectionForFunction to AsmPrinter.

llvm-svn: 30734
This commit is contained in:
Chris Lattner 2006-10-05 02:41:43 +00:00
parent 0d236450aa
commit 0dca927148
2 changed files with 6 additions and 8 deletions

View 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);

View 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.
//