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/CGObjC.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/CGObjC.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjC.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index ca67c4bd1c1..42da902a3e9 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/lib/CodeGen/CGObjC.cpp @@ -508,8 +508,6 @@ void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) { Cnt.beginRegion(Builder); EmitCompoundStmtWithoutScope(*cast<CompoundStmt>(OMD->getBody())); FinishFunction(OMD->getBodyRBrace()); - PGO.emitInstrumentationData(); - PGO.destroyRegionCounters(); } /// emitStructGetterCall - Call the runtime function to load a property |