[llvm-commits] [llvm] r76971 - /llvm/trunk/lib/Target/TargetAsmInfo.cpp

Chris Lattner sabre at nondot.org
Fri Jul 24 09:40:46 PDT 2009


Author: lattner
Date: Fri Jul 24 11:40:45 2009
New Revision: 76971

URL: http://llvm.org/viewvc/llvm-project?rev=76971&view=rev
Log:
There is no need to pass the name into  lib/Target/TargetAsmInfo.cpp
when we have a global with no section explicitly specified.

Modified:
    llvm/trunk/lib/Target/TargetAsmInfo.cpp

Modified: llvm/trunk/lib/Target/TargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetAsmInfo.cpp?rev=76971&r1=76970&r2=76971&view=diff

==============================================================================
--- llvm/trunk/lib/Target/TargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetAsmInfo.cpp Fri Jul 24 11:40:45 2009
@@ -302,7 +302,7 @@
           getSectionPrefixForUniqueGlobal(SectionKindForGlobal(GV))) {
       // FIXME: Use mangler interface (PR4584).
       std::string Name = Prefix+GV->getNameStr();
-      unsigned Flags = SectionFlagsForGlobal(GV, Name.c_str());
+      unsigned Flags = SectionFlagsForGlobal(GV);
       return getNamedSection(Name.c_str(), Flags);
     }
   }





More information about the llvm-commits mailing list