mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Give TargetAsmInfo a virtual dtor, add a new getSectionForFunction method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fea13d33e5
commit
f5b10ec509
@ -262,10 +262,18 @@ namespace llvm {
|
||||
///
|
||||
const char *DwarfMacInfoSection; // Defaults to ".debug_macinfo".
|
||||
|
||||
|
||||
public:
|
||||
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.
|
||||
//
|
||||
|
@ -74,3 +74,6 @@ TargetAsmInfo::TargetAsmInfo() :
|
||||
DwarfRangesSection(".debug_ranges"),
|
||||
DwarfMacInfoSection(".debug_macinfo")
|
||||
{}
|
||||
|
||||
TargetAsmInfo::~TargetAsmInfo() {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user