diff options
-rw-r--r-- | include/llvm/Target/DarwinTargetAsmInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/DarwinTargetAsmInfo.h b/include/llvm/Target/DarwinTargetAsmInfo.h index 48f9133923..082acbfe37 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; }; |