Another getName -> getNameStr
authorDaniel Dunbar <daniel@zuster.org>
Fri, 24 Jul 2009 12:21:08 +0000 (12:21 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 24 Jul 2009 12:21:08 +0000 (12:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76967 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetAsmInfo.cpp

index e193dd47a51f89d0dd5a73f40bd74e9b5f7c3e63..5403b3d2ef646466e539f8461b4b5139d24caf24 100644 (file)
@@ -301,7 +301,7 @@ const Section *TargetAsmInfo::SectionForGlobal(const GlobalValue *GV) const {
     if (const char *Prefix =
           getSectionPrefixForUniqueGlobal(SectionKindForGlobal(GV))) {
       // FIXME: Use mangler interface (PR4584).
-      std::string Name = Prefix+GV->getName();
+      std::string Name = Prefix+GV->getNameStr();
       unsigned Flags = SectionFlagsForGlobal(GV, Name.c_str());
       return getNamedSection(Name.c_str(), Flags);
     }