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)
commit9c6818ef00da5c59c0762fea85bd936e0fc31327
treec988497e08b952a52a934ab5c1892ba9f4ed2d27
parent821d7471f91858ce91de86df940cedfab4166543
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.

llvm-svn: 214586
clang/lib/CodeGen/CodeGenPGO.cpp
clang/test/Profile/Inputs/c-general.profdata.v1 [new file with mode: 0644]
clang/test/Profile/c-general.c