[llvm-commits] [llvm] r76952 - /llvm/trunk/include/llvm/Target/DarwinTargetAsmInfo.h

Chris Lattner sabre at nondot.org
Thu Jul 23 22:02:38 PDT 2009


Author: lattner
Date: Fri Jul 24 00:02:38 2009
New Revision: 76952

URL: http://llvm.org/viewvc/llvm-project?rev=76952&view=rev
Log:
Implement getSectionPrefixForUniqueGlobal to return null, indicating that
darwin does it's own unique and special and wonderful thing.

Modified:
    llvm/trunk/include/llvm/Target/DarwinTargetAsmInfo.h

Modified: llvm/trunk/include/llvm/Target/DarwinTargetAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/DarwinTargetAsmInfo.h?rev=76952&r1=76951&r2=76952&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Target/DarwinTargetAsmInfo.h (original)
+++ llvm/trunk/include/llvm/Target/DarwinTargetAsmInfo.h Fri Jul 24 00:02:38 2009
@@ -42,6 +42,12 @@
     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;
   };





More information about the llvm-commits mailing list