summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-12-08 19:04:51 +0000
committerJustin Bogner <mail@justinbogner.com>2014-12-08 19:04:51 +0000
commit970ac60573da3cce98934d73f65285bbcbfb5ba3 (patch)
tree481fade33caaf808c8fbc72c741c8518ee743d99 /clang/lib/CodeGen/CGStmt.cpp
parent903f3db7acbd3b994e5adf0ea20a5bfff40fba81 (diff)
downloadbcm5719-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/CGStmt.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index f207a4f7f8d..835f043a924 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -2208,8 +2208,6 @@ CodeGenFunction::GenerateCapturedStmtFunction(const CapturedStmt &S) {
PGO.assignRegionCounters(CD, F);
CapturedStmtInfo->EmitBody(*this, CD->getBody());
FinishFunction(CD->getBodyRBrace());
- PGO.emitInstrumentationData();
- PGO.destroyRegionCounters();
return F;
}
OpenPOWER on IntegriCloud