From: Chris Lattner Date: Fri, 24 Jul 2009 05:02:38 +0000 (+0000) Subject: Implement getSectionPrefixForUniqueGlobal to return null, indicating that X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=78717cb63dbc65f76ef2debb72ab48bbf227ef1e;p=oota-llvm.git Implement getSectionPrefixForUniqueGlobal to return null, indicating that darwin does it's own unique and special and wonderful thing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76952 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/DarwinTargetAsmInfo.h b/include/llvm/Target/DarwinTargetAsmInfo.h index 48f9133923e..082acbfe378 100644 --- a/include/llvm/Target/DarwinTargetAsmInfo.h +++ b/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; };