[PGO] Stop using invalid char in instr variable names.
authorXinliang David Li <davidxl@google.com>
Sat, 12 Dec 2015 17:28:03 +0000 (17:28 +0000)
committerXinliang David Li <davidxl@google.com>
Sat, 12 Dec 2015 17:28:03 +0000 (17:28 +0000)
commit59ef72d321d2c3322c95f26f365b39c07b60d99a
treee3caab6e2d5ab2d205632ebb50d918838d24e1eb
parent3720185c2869c146a5e889e05f4e62cee3dc314d
[PGO] Stop using invalid char in instr variable names.

Before the patch, -fprofile-instr-generate compile will fail
if no integrated-as is specified when the file contains
any static functions (the -S output is also invalid).

This is the second try. The fix in this patch is very localized.
Only profile symbol names of profile symbols with internal
linkage are fixed up while initializer of name syms are not
changes. This means there is no format change nor version bump.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255434 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ProfileData/InstrProf.cpp
lib/Transforms/Instrumentation/InstrProfiling.cpp
test/Instrumentation/InstrProfiling/profiling.ll
test/Transforms/PGOProfile/criticaledge.ll