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; };