diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-12-08 19:04:51 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-12-08 19:04:51 +0000 |
commit | 970ac60573da3cce98934d73f65285bbcbfb5ba3 (patch) | |
tree | 481fade33caaf808c8fbc72c741c8518ee743d99 /clang/lib/CodeGen/CGBlocks.cpp | |
parent | 903f3db7acbd3b994e5adf0ea20a5bfff40fba81 (diff) | |
download | bcm5719-llvm-970ac60573da3cce98934d73f65285bbcbfb5ba3.tar.gz bcm5719-llvm-970ac60573da3cce98934d73f65285bbcbfb5ba3.zip |
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
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index a35076da560..be3a5bf6e16 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -1215,8 +1215,6 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD, RegionCounter Cnt = getPGORegionCounter(blockDecl->getBody()); Cnt.beginRegion(Builder); EmitStmt(blockDecl->getBody()); - PGO.emitInstrumentationData(); - PGO.destroyRegionCounters(); } // Remember where we were... |