[PGO] Stop using invalid char in instr variable names.
authorXinliang David Li <davidxl@google.com>
Fri, 11 Dec 2015 19:53:19 +0000 (19:53 +0000)
committerXinliang David Li <davidxl@google.com>
Fri, 11 Dec 2015 19:53:19 +0000 (19:53 +0000)
commitb6b389aaac0ff6e3d3b4002e79b47a1a14e076c7
treebaab22336b6867d5a7e3569d73d7622cca58f114
parentf43272c76e2e0ba56d26f0e4b54dccb3e38628b0
[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 patch fixed the issue. With the change, the index format
version will be bumped up by 1. Backward compatibility is
preserved with this change.

Differential Revision: http://reviews.llvm.org/D15243

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255365 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/InstrProf.h
lib/ProfileData/InstrProf.cpp
test/Transforms/PGOProfile/Inputs/criticaledge.proftext
test/Transforms/PGOProfile/criticaledge.ll
test/tools/llvm-profdata/Inputs/compat.profdata.v4 [new file with mode: 0644]
test/tools/llvm-profdata/compat.proftext