aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.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/CodeGenFunction.cpp
parent903f3db7acbd3b994e5adf0ea20a5bfff40fba81 (diff)
downloadllvm-970ac60573da3cce98934d73f65285bbcbfb5ba3.zip
llvm-970ac60573da3cce98934d73f65285bbcbfb5ba3.tar.gz
llvm-970ac60573da3cce98934d73f65285bbcbfb5ba3.tar.bz2
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/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 02cca4b..0b9506f 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -916,9 +916,6 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn,
// a quick pass now to see if we can.
if (!CurFn->doesNotThrow())
TryMarkNoThrow(CurFn);
-
- PGO.emitInstrumentationData();
- PGO.destroyRegionCounters();
}
/// ContainsLabel - Return true if the statement contains a label in it. If