Have a single way for creating unique value names.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 22 Nov 2015 00:16:24 +0000 (00:16 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 22 Nov 2015 00:16:24 +0000 (00:16 +0000)
commita2197f8f51c97ef61a814a7f16fd1eab20a47b5a
tree8ff804c2d4ddcc57d935197de5dffffbdf017586
parent0e13c07553708c5ec5247aac8a67a7a263169902
Have a single way for creating unique value names.

We had two code paths. One would create names like "foo.1" and the other
names like "foo1".

For globals it is important to use "foo.1" to help C++ name demangling.
For locals there is no strong reason to go one way or the other so I
kept the most common mangling (foo1).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253804 91177308-0d34-0410-b5e6-96231b3b80d8
23 files changed:
include/llvm/IR/ValueSymbolTable.h
lib/IR/ValueSymbolTable.cpp
test/CodeGen/NVPTX/symbol-naming.ll
test/Linker/2003-01-30-LinkerRename.ll
test/Linker/2003-05-31-LinkerRename.ll
test/Linker/override-with-internal-linkage.ll
test/Linker/testlink.ll
test/Transforms/BBVectorize/simple3.ll
test/Transforms/Inline/noalias-cs.ll
test/Transforms/Inline/noalias2.ll
test/Transforms/InstCombine/cast.ll
test/Transforms/InstCombine/shift.ll
test/Transforms/InstCombine/xor.ll
test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll
test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches.ll
test/Transforms/LowerSwitch/feature.ll
test/Transforms/PlaceSafepoints/basic.ll
test/Transforms/PlaceSafepoints/call_gc_result.ll
test/Transforms/RewriteStatepointsForGC/deopt-bundles/rewrite-invoke.ll
test/Transforms/RewriteStatepointsForGC/relocation.ll
test/Transforms/Util/lowerswitch.ll
test/tools/gold/X86/comdat.ll
test/tools/llvm-split/unnamed.ll