mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
eliminate TargetLoweringObjectFileSparc in favor of a TAI hook.
A TAI hook is appropriate in this case because this is just an asm syntax issue, not a semantic difference. TLOF should model the semantics of the section. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78498 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -25,6 +25,7 @@ namespace llvm {
|
||||
class GlobalValue;
|
||||
class Mangler;
|
||||
class TargetMachine;
|
||||
class TargetAsmInfo;
|
||||
|
||||
class TargetLoweringObjectFile {
|
||||
MCContext *Ctx;
|
||||
@@ -172,7 +173,8 @@ public:
|
||||
/// into a string that can be printed to the assembly file after the
|
||||
/// ".section foo" part of a section directive.
|
||||
virtual void getSectionFlagsAsString(SectionKind Kind,
|
||||
SmallVectorImpl<char> &Str) const {
|
||||
SmallVectorImpl<char> &Str,
|
||||
const TargetAsmInfo &TAI) const {
|
||||
}
|
||||
|
||||
protected:
|
||||
@@ -229,7 +231,8 @@ public:
|
||||
Mangler *Mang, const TargetMachine &TM) const;
|
||||
|
||||
void getSectionFlagsAsString(SectionKind Kind,
|
||||
SmallVectorImpl<char> &Str) const;
|
||||
SmallVectorImpl<char> &Str,
|
||||
const TargetAsmInfo &TAI) const;
|
||||
|
||||
virtual const MCSection *
|
||||
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
||||
@@ -286,7 +289,8 @@ public:
|
||||
Mangler *Mang, const TargetMachine &TM) const;
|
||||
|
||||
virtual void getSectionFlagsAsString(SectionKind Kind,
|
||||
SmallVectorImpl<char> &Str) const;
|
||||
SmallVectorImpl<char> &Str,
|
||||
const TargetAsmInfo &TAI) const;
|
||||
|
||||
virtual const MCSection *
|
||||
SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
||||
|
Reference in New Issue
Block a user