aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
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
commit7cb5c53dc3aebfa4ef3bbb17481384825e6de434 (patch)
treeefe41d4cd956bc6c8ad942e7f9c1f97657d516d5 /lib/Target
parentd94d60f6cd00b016905187498852c71bc13350fc (diff)
downloadexternal_llvm-7cb5c53dc3aebfa4ef3bbb17481384825e6de434.zip
external_llvm-7cb5c53dc3aebfa4ef3bbb17481384825e6de434.tar.gz
external_llvm-7cb5c53dc3aebfa4ef3bbb17481384825e6de434.tar.bz2
constant prop a utostr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-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);
}