mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
remove the Xcore implementation of SelectSectionForGlobal. While you have
to twist your brain to see it, I believe it is the same as ELFTargetAsmInfo::SelectSectionForGlobal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76664 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
449e379bd7
commit
97ee12755d
@ -68,27 +68,6 @@ XCoreTargetAsmInfo::XCoreTargetAsmInfo(const XCoreTargetMachine &TM)
|
|||||||
DwarfMacroInfoSection = "\t.section\t.debug_macinfo,\"\",@progbits";
|
DwarfMacroInfoSection = "\t.section\t.debug_macinfo,\"\",@progbits";
|
||||||
}
|
}
|
||||||
|
|
||||||
const Section*
|
|
||||||
XCoreTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
|
|
||||||
SectionKind::Kind Kind = SectionKindForGlobal(GV);
|
|
||||||
|
|
||||||
if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) {
|
|
||||||
if (!GVar->isWeakForLinker()) {
|
|
||||||
switch (Kind) {
|
|
||||||
case SectionKind::RODataMergeConst:
|
|
||||||
return getReadOnlySection();
|
|
||||||
case SectionKind::ThreadData:
|
|
||||||
return DataSection;
|
|
||||||
case SectionKind::ThreadBSS:
|
|
||||||
return getBSSSection_();
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return ELFTargetAsmInfo::SelectSectionForGlobal(GV);
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned XCoreTargetAsmInfo::
|
unsigned XCoreTargetAsmInfo::
|
||||||
SectionFlagsForGlobal(const GlobalValue *GV, const char* Name) const {
|
SectionFlagsForGlobal(const GlobalValue *GV, const char* Name) const {
|
||||||
unsigned Flags = ELFTargetAsmInfo::SectionFlagsForGlobal(GV, Name);
|
unsigned Flags = ELFTargetAsmInfo::SectionFlagsForGlobal(GV, Name);
|
||||||
|
@ -28,7 +28,6 @@ namespace llvm {
|
|||||||
public:
|
public:
|
||||||
explicit XCoreTargetAsmInfo(const XCoreTargetMachine &TM);
|
explicit XCoreTargetAsmInfo(const XCoreTargetMachine &TM);
|
||||||
|
|
||||||
virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
|
|
||||||
virtual unsigned
|
virtual unsigned
|
||||||
SectionFlagsForGlobal(const GlobalValue *GV = NULL,
|
SectionFlagsForGlobal(const GlobalValue *GV = NULL,
|
||||||
const char* name = NULL) const;
|
const char* name = NULL) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user