diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-21 22:36:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-21 22:36:53 +0000 |
| commit | 43893573f4124337c7fcf4cd67e0876b308192f9 (patch) | |
| tree | 75a3ef452e8f5ce233a6addb938a8c461ae309b0 | |
| parent | aee31ac31696b9c956987e655dc06adb34f992df (diff) | |
| download | bcm5719-llvm-43893573f4124337c7fcf4cd67e0876b308192f9.tar.gz bcm5719-llvm-43893573f4124337c7fcf4cd67e0876b308192f9.zip | |
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.
llvm-svn: 76664
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp | 21 | ||||
| -rw-r--r-- | llvm/lib/Target/XCore/XCoreTargetAsmInfo.h | 1 |
2 files changed, 0 insertions, 22 deletions
diff --git a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp index 6c613ef1665..cf27a51d281 100644 --- a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.cpp +++ b/llvm/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/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h b/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h index 3582effa901..c59c96e4d85 100644 --- a/llvm/lib/Target/XCore/XCoreTargetAsmInfo.h +++ b/llvm/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; |

