constant prop a utostr.
authorChris Lattner <sabre@nondot.org>
Wed, 29 Jul 2009 04:55:08 +0000 (04:55 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Jul 2009 04:55:08 +0000 (04:55 +0000)
llvm-svn: 77430

llvm/lib/Target/TargetLoweringObjectFile.cpp

index 379099b..bbcf53d 100644 (file)
@@ -420,8 +420,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
     unsigned Align = 
       TM.getTargetData()->getPreferredAlignment(cast<GlobalVariable>(GV));
     
-    std::string Name = CStringSection_->getName() + utostr(Size) + '.' +
-    utostr(Align);
+    std::string Name = CStringSection_->getName() + "1." + utostr(Align);
     return getOrCreateSection(Name.c_str(), false,
                               SectionKind::MergeableCString);
   }