]> granicus.if.org Git - clang/commit
InstrProf: Update for LLVM API change
authorJustin Bogner <mail@justinbogner.com>
Fri, 1 Aug 2014 22:50:16 +0000 (22:50 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 1 Aug 2014 22:50:16 +0000 (22:50 +0000)
commitb16d21adf263b8bef7f455e8c2454754431f893c
tree7d7f9c0acf485e2e2be800314384fe31c899c210
parent5dc696f3e7a7b7204c85d1bd40caebecff07f96e
InstrProf: Update for LLVM API change

We've added support for a multiple functions with the same name in
LLVM's profile data, so the lookup returning the function hash it
found doesn't make sense anymore. Update to pass in the hash we
expect.

This also adds a test that the version 1 format is still readable,
since the new API is expected to handle that.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214586 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPGO.cpp
test/Profile/Inputs/c-general.profdata.v1 [new file with mode: 0644]
test/Profile/c-general.c