InstrProf: Cede ownership of createProfileWeights to CGF
authorJustin Bogner <mail@justinbogner.com>
Sat, 2 May 2015 05:00:55 +0000 (05:00 +0000)
committerJustin Bogner <mail@justinbogner.com>
Sat, 2 May 2015 05:00:55 +0000 (05:00 +0000)
commit65512647cc63942e86681a2291abf58f93d88f4f
treec3c4c9d21aad28b7addd6550ad01e1da93dcba52
parent72d03efa6d9d78236de8c731c868e426f7ee5608
InstrProf: Cede ownership of createProfileWeights to CGF

The fact that PGO has a say in how these branch weights are determined
isn't interesting to most of CodeGen, so it makes more sense for this
API to be accessible via CodeGenFunction rather than CodeGenPGO.

llvm-svn: 236380
clang/lib/CodeGen/CGObjC.cpp
clang/lib/CodeGen/CGStmt.cpp
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/CodeGen/CodeGenPGO.cpp
clang/lib/CodeGen/CodeGenPGO.h