aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/XCore/XCoreTargetAsmInfo.cpp21
-rw-r--r--lib/Target/XCore/XCoreTargetAsmInfo.h1
2 files changed, 0 insertions, 22 deletions
diff --git a/lib/Target/XCore/XCoreTargetAsmInfo.cpp b/lib/Target/XCore/XCoreTargetAsmInfo.cpp
index 6c613ef166..cf27a51d28 100644
--- a/lib/Target/XCore/XCoreTargetAsmInfo.cpp
+++ b/lib/Target/XCore/XCoreTargetAsmInfo.cpp
@@ -68,27 +68,6 @@ XCoreTargetAsmInfo::XCoreTargetAsmInfo(const XCoreTargetMachine &TM)
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::
SectionFlagsForGlobal(const GlobalValue *GV, const char* Name) const {
unsigned Flags = ELFTargetAsmInfo::SectionFlagsForGlobal(GV, Name);
diff --git a/lib/Target/XCore/XCoreTargetAsmInfo.h b/lib/Target/XCore/XCoreTargetAsmInfo.h
index 3582effa90..c59c96e4d8 100644
--- a/lib/Target/XCore/XCoreTargetAsmInfo.h
+++ b/lib/Target/XCore/XCoreTargetAsmInfo.h
@@ -28,7 +28,6 @@ namespace llvm {
public:
explicit XCoreTargetAsmInfo(const XCoreTargetMachine &TM);
- virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
virtual unsigned
SectionFlagsForGlobal(const GlobalValue *GV = NULL,
const char* name = NULL) const;