diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-24 05:02:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-24 05:02:38 +0000 |
commit | 78717cb63dbc65f76ef2debb72ab48bbf227ef1e (patch) | |
tree | be3d528b32f8fb35d9ea8940c1e100a82150a72e | |
parent | 57743effb8055a9d9a0ae951f835a82b2f1e85a4 (diff) |
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
-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; }; |