mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
move getSectionForFunction to AsmPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b56dcc453e
commit
1279b7c2a9
@ -132,6 +132,12 @@ namespace llvm {
|
|||||||
unsigned AsmVariant,
|
unsigned AsmVariant,
|
||||||
const char *ExtraCode);
|
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
|
/// SetupMachineFunction - This should be called when a new MachineFunction
|
||||||
/// is being processed from runOnMachineFunction.
|
/// is being processed from runOnMachineFunction.
|
||||||
void SetupMachineFunction(MachineFunction &MF);
|
void SetupMachineFunction(MachineFunction &MF);
|
||||||
|
@ -266,14 +266,6 @@ namespace llvm {
|
|||||||
TargetAsmInfo();
|
TargetAsmInfo();
|
||||||
virtual ~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.
|
// Accessors.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user