InstrProf: Use LLVM's -instrprof pass for profiling
authorJustin Bogner <mail@justinbogner.com>
Mon, 8 Dec 2014 19:04:51 +0000 (19:04 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 8 Dec 2014 19:04:51 +0000 (19:04 +0000)
commit970ac60573da3cce98934d73f65285bbcbfb5ba3
tree481fade33caaf808c8fbc72c741c8518ee743d99
parent903f3db7acbd3b994e5adf0ea20a5bfff40fba81
InstrProf: Use LLVM's -instrprof pass for profiling

The logic for lowering profiling counters has been moved to an LLVM
pass. Emit the intrinsics rather than duplicating the whole pass in
clang.

llvm-svn: 223683
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/CodeGen/CGBlocks.cpp
clang/lib/CodeGen/CGObjC.cpp
clang/lib/CodeGen/CGStmt.cpp
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenPGO.cpp
clang/lib/CodeGen/CodeGenPGO.h
clang/test/Profile/c-linkage-available_externally.c
clang/test/Profile/c-linkage.c
clang/test/Profile/cxx-linkage.cpp