Make this more efficient of the common case where we are only mangling globals.
authorChris Lattner <sabre@nondot.org>
Thu, 10 Nov 2005 18:48:58 +0000 (18:48 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 10 Nov 2005 18:48:58 +0000 (18:48 +0000)
commit9ddf21276e92cedd9063430af3fbdc8a1bf68169
tree9d3a2d444ce64228093de65c1eeb96f1c1d8dcfd
parenta112e0f44721848363b42ddeb7c6354f934878e0
Make this more efficient of the common case where we are only mangling globals.
Do not mangle internal global names that do not collide with anything.

This gives us strings that now look like this:

__2E_str_1:                             ; '.str_1'
        .asciz  "foo"

instead of this:

l1__2E_str_1:                           ; '.str_1'
        .asciz  "foo"

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24277 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Mangler.cpp