aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-29 04:55:08 +0000
committerChris Lattner <sabre@nondot.org>2009-07-29 04:55:08 +0000
commita679207d5852760c9809157eb67d2609cc3c268a (patch)
treeefe41d4cd956bc6c8ad942e7f9c1f97657d516d5
parent067fe1ae5488764afb8d8fdafba65899dc221887 (diff)
downloadexternal_llvm-a679207d5852760c9809157eb67d2609cc3c268a.zip
external_llvm-a679207d5852760c9809157eb67d2609cc3c268a.tar.gz
external_llvm-a679207d5852760c9809157eb67d2609cc3c268a.tar.bz2
constant prop a utostr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77430 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/TargetLoweringObjectFile.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp
index 379099b..bbcf53d 100644
--- a/lib/Target/TargetLoweringObjectFile.cpp
+++ b/lib/Target/TargetLoweringObjectFile.cpp
@@ -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);
}