aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ValueSymbolTable.cpp
diff options
context:
space:
mode:
authorSunil Srivastava <sunil_srivastava@playstation.sony.com>2015-05-12 16:47:30 +0000
committerSunil Srivastava <sunil_srivastava@playstation.sony.com>2015-05-12 16:47:30 +0000
commitd79dfcbc37b1b0909c2340d4c7b0e00aa090597f (patch)
tree1c8b08533924fe5c94b096c7b83396943bd80198 /llvm/lib/IR/ValueSymbolTable.cpp
parentf57fb6ce1ae1a9f85ba70d8e251559ac2aa8bc75 (diff)
downloadllvm-d79dfcbc37b1b0909c2340d4c7b0e00aa090597f.zip
llvm-d79dfcbc37b1b0909c2340d4c7b0e00aa090597f.tar.gz
llvm-d79dfcbc37b1b0909c2340d4c7b0e00aa090597f.tar.bz2
Changed renaming of local symbols by inserting a dot vefore the numeric suffix.
One code change and several test changes to match that details in http://reviews.llvm.org/D9481 llvm-svn: 237150
Diffstat (limited to 'llvm/lib/IR/ValueSymbolTable.cpp')
-rw-r--r--llvm/lib/IR/ValueSymbolTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/ValueSymbolTable.cpp b/llvm/lib/IR/ValueSymbolTable.cpp
index 4f078f0..e10142d 100644
--- a/llvm/lib/IR/ValueSymbolTable.cpp
+++ b/llvm/lib/IR/ValueSymbolTable.cpp
@@ -53,7 +53,7 @@ void ValueSymbolTable::reinsertValue(Value* V) {
while (1) {
// Trim any suffix off and append the next number.
UniqueName.resize(BaseSize);
- raw_svector_ostream(UniqueName) << ++LastUnique;
+ raw_svector_ostream(UniqueName) << "." << ++LastUnique;
// Try insert the vmap entry with this suffix.
auto IterBool = vmap.insert(std::make_pair(UniqueName, V));