[PGO] Refactor PGOFuncName meta data code to be used in clang
authorRong Xu <xur@google.com>
Fri, 1 Apr 2016 16:43:30 +0000 (16:43 +0000)
committerRong Xu <xur@google.com>
Fri, 1 Apr 2016 16:43:30 +0000 (16:43 +0000)
commit8e8fe859e059ce0d0704596c5c6a7ab02f39c5ee
tree70df5a8810cf47f3013623517b49b39086c7d799
parenta05e0ff22376f4cbc6707841b3760c6f9f587663
[PGO] Refactor PGOFuncName meta data code to be used in clang

Refactor the code that gets and creates PGOFuncName meta data so that it can be
used in clang's value profile annotation.

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

llvm-svn: 265149
llvm/include/llvm/ProfileData/InstrProf.h
llvm/lib/ProfileData/InstrProf.cpp
llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp