From 6afdc5e6944b2947aa843f21599801a9c9307929 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 30 Jul 2009 04:20:37 +0000 Subject: Switch obvious clients to Twine instead of utostr (when they were already using a Twine, e.g., for names). - I am a little ambivalent about this; we don't want the string conversion of utostr, but using overload '+' mixed with string and integer arguments is sketchy. On the other hand, this particular usage is something of an idiom. llvm-svn: 77579 --- llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp') diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp index 5cf3a9b6fd4..c31e0ef35e9 100644 --- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -47,7 +47,6 @@ #include "llvm/Support/raw_ostream.h" #include "llvm/ADT/DepthFirstIterator.h" #include "llvm/ADT/Statistic.h" -#include "llvm/ADT/StringExtras.h" #include using namespace llvm; @@ -765,9 +764,9 @@ Function *ArgPromotion::DoPromotion(Function *F, Idxs[1] = ConstantInt::get(Type::Int32Ty, i); Value *Idx = GetElementPtrInst::Create(TheAlloca, Idxs, Idxs+2, - TheAlloca->getName()+"."+utostr(i), + TheAlloca->getName()+"."+i, InsertPt); - I2->setName(I->getName()+"."+utostr(i)); + I2->setName(I->getName()+"."+i); new StoreInst(I2++, Idx, InsertPt); } -- cgit v1.2.3