There is no need to pass the name into lib/Target/TargetAsmInfo.cpp
authorChris Lattner <sabre@nondot.org>
Fri, 24 Jul 2009 16:40:45 +0000 (16:40 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 24 Jul 2009 16:40:45 +0000 (16:40 +0000)
when we have a global with no section explicitly specified.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76971 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetAsmInfo.cpp

index 5403b3d2ef646466e539f8461b4b5139d24caf24..157444a0ce34e75a3fe6f4209350783250d98232 100644 (file)
@@ -302,7 +302,7 @@ const Section *TargetAsmInfo::SectionForGlobal(const GlobalValue *GV) const {
           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);
     }
   }