[PGO] Add hash to name mapping in InstrProfSymtab
authorXinliang David Li <davidxl@google.com>
Sat, 19 Dec 2015 07:44:57 +0000 (07:44 +0000)
committerXinliang David Li <davidxl@google.com>
Sat, 19 Dec 2015 07:44:57 +0000 (07:44 +0000)
commitab49f7c709fbdce97fba0c331552840c3fc327b0
treed707c3baa4bbd0ea1e511ca7ce86635f171a06e0
parent34f1d639d36a40bb5817fe7241cdffab76cc4735
[PGO] Add hash to name mapping in InstrProfSymtab

Creator and lookup interfaces are added to this symtab class.
The new interfaces will be used by InstrProf Readers and writer.

A unit test is also added for the new APIs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256092 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/InstrProf.h
unittests/ProfileData/InstrProfTest.cpp