Implement getSectionPrefixForUniqueGlobal to return null, indicating that

darwin does it's own unique and special and wonderful thing.

llvm-svn: 76952
This commit is contained in:
Chris Lattner 2009-07-24 05:02:38 +00:00
parent c21c02aacd
commit febe552dbd
1 changed files with 6 additions and 0 deletions

View File

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