From: Chris Lattner Date: Fri, 24 Jul 2009 16:40:45 +0000 (+0000) Subject: There is no need to pass the name into lib/Target/TargetAsmInfo.cpp X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3df6d5d83b3208836726807f20c02f1bf45ff31f;p=oota-llvm.git There is no need to pass the name into lib/Target/TargetAsmInfo.cpp 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 --- diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index 5403b3d2ef6..157444a0ce3 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -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); } }