[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)
commitc79283ef2912095de447295c0b49916cf2504ad0
treee1810ebfa38f87f46c1dd099f8b5259ae466d285
parente2ccd33359327b83fd183de4de8331735088b063
[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

llvm-svn: 255365
llvm/include/llvm/ProfileData/InstrProf.h
llvm/lib/ProfileData/InstrProf.cpp
llvm/test/Transforms/PGOProfile/Inputs/criticaledge.proftext
llvm/test/Transforms/PGOProfile/criticaledge.ll
llvm/test/tools/llvm-profdata/Inputs/compat.profdata.v4 [new file with mode: 0644]
llvm/test/tools/llvm-profdata/compat.proftext