diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-07-30 04:20:37 +0000 | 
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-30 04:20:37 +0000 | 
| commit | 6afdc5e6944b2947aa843f21599801a9c9307929 (patch) | |
| tree | 8c0d8932d030962388cc883b0509acca49cf0d05 /llvm/lib/Transforms/Utils | |
| parent | 8787861004f47f303234a37f202c319b99def1ab (diff) | |
| download | bcm5719-llvm-6afdc5e6944b2947aa843f21599801a9c9307929.tar.gz bcm5719-llvm-6afdc5e6944b2947aa843f21599801a9c9307929.zip  | |
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
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index bad7e4c9504..7f8d2026e34 100644 --- a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -30,7 +30,6 @@  #include "llvm/ADT/SmallPtrSet.h"  #include "llvm/ADT/SmallVector.h"  #include "llvm/ADT/Statistic.h" -#include "llvm/ADT/StringExtras.h"  #include "llvm/ADT/STLExtras.h"  #include "llvm/Support/CFG.h"  #include "llvm/Support/Compiler.h" @@ -868,8 +867,8 @@ bool PromoteMem2Reg::QueuePhiNode(BasicBlock *BB, unsigned AllocaNo,    // Create a PhiNode using the dereferenced type... and add the phi-node to the    // BasicBlock.    PN = PHINode::Create(Allocas[AllocaNo]->getAllocatedType(), -                       Allocas[AllocaNo]->getName() + "." + -                       utostr(Version++), BB->begin()); +                       Allocas[AllocaNo]->getName() + "." + Version++,  +                       BB->begin());    ++NumPHIInsert;    PhiToAllocaMap[PN] = AllocaNo;    PN->reserveOperandSpace(getNumPreds(BB));  | 

