mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Removed small section flag for mips, the assembler doesnt support this flag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54214 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d3a680dda5
commit
ea7930e618
@ -45,8 +45,16 @@ MipsTargetAsmInfo::MipsTargetAsmInfo(const MipsTargetMachine &TM):
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SectionKind::Kind
|
unsigned MipsTargetAsmInfo::
|
||||||
MipsTargetAsmInfo::SectionKindForGlobal(const GlobalValue *GV) const {
|
SectionFlagsForGlobal(const GlobalValue *GV, const char* Name) const {
|
||||||
|
unsigned Flags = ELFTargetAsmInfo::SectionFlagsForGlobal(GV, Name);
|
||||||
|
// Mask out Small Section flag bit, Mips doesnt support 's' section symbol
|
||||||
|
// for its small sections.
|
||||||
|
return (Flags & (~SectionFlags::Small));
|
||||||
|
}
|
||||||
|
|
||||||
|
SectionKind::Kind MipsTargetAsmInfo::
|
||||||
|
SectionKindForGlobal(const GlobalValue *GV) const {
|
||||||
SectionKind::Kind K = ELFTargetAsmInfo::SectionKindForGlobal(GV);
|
SectionKind::Kind K = ELFTargetAsmInfo::SectionKindForGlobal(GV);
|
||||||
|
|
||||||
if (Subtarget->hasABICall())
|
if (Subtarget->hasABICall())
|
||||||
@ -72,8 +80,8 @@ MipsTargetAsmInfo::SectionKindForGlobal(const GlobalValue *GV) const {
|
|||||||
return K;
|
return K;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Section*
|
const Section* MipsTargetAsmInfo::
|
||||||
MipsTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
|
SelectSectionForGlobal(const GlobalValue *GV) const {
|
||||||
SectionKind::Kind K = SectionKindForGlobal(GV);
|
SectionKind::Kind K = SectionKindForGlobal(GV);
|
||||||
const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
|
const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
|
||||||
|
|
||||||
|
@ -34,6 +34,12 @@ namespace llvm {
|
|||||||
virtual SectionKind::Kind
|
virtual SectionKind::Kind
|
||||||
SectionKindForGlobal(const GlobalValue *GV) const;
|
SectionKindForGlobal(const GlobalValue *GV) const;
|
||||||
|
|
||||||
|
/// SectionFlagsForGlobal - This hook allows the target to select proper
|
||||||
|
/// section flags either for given global or for section.
|
||||||
|
virtual unsigned
|
||||||
|
SectionFlagsForGlobal(const GlobalValue *GV = NULL,
|
||||||
|
const char* name = NULL) const;
|
||||||
|
|
||||||
virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
|
virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user