aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/ArgumentPromotion.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-30 04:20:37 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-30 04:20:37 +0000
commit7f93dc8345fb33652973e35cae4c3b58addf4f87 (patch)
treeed8cd8df99055bd3f6660c4d194a85f363ccda57 /lib/Transforms/IPO/ArgumentPromotion.cpp
parente409f0a779008ad71f8ebb88431630d1d9e33a86 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r--lib/Transforms/IPO/ArgumentPromotion.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp
index 5cf3a9b6fd..c31e0ef35e 100644
--- a/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/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 <set>
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);
}