From febe552dbd7de290021c32a58c8eb1cf57cb56f7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 24 Jul 2009 05:02:38 +0000 Subject: [PATCH] Implement getSectionPrefixForUniqueGlobal to return null, indicating that darwin does it's own unique and special and wonderful thing. llvm-svn: 76952 --- llvm/include/llvm/Target/DarwinTargetAsmInfo.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/include/llvm/Target/DarwinTargetAsmInfo.h b/llvm/include/llvm/Target/DarwinTargetAsmInfo.h index 48f9133923e6..082acbfe3782 100644 --- a/llvm/include/llvm/Target/DarwinTargetAsmInfo.h +++ b/llvm/include/llvm/Target/DarwinTargetAsmInfo.h @@ -42,6 +42,12 @@ namespace llvm { virtual const Section * getSectionForMergableConstant(uint64_t Size, unsigned ReloInfo) const; + virtual const char * + getSectionPrefixForUniqueGlobal(SectionKind::Kind Kind) const { + // Darwin doesn't use uniqued sections for weak symbols. + return 0; + } + private: const Section* MergeableStringSection(const GlobalVariable *GV) const; }; -- 2.34.1