diff options
author | Alex Lorenz <arphaman@gmail.com> | 2014-08-04 18:41:51 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2014-08-04 18:41:51 +0000 |
commit | ee02499a8fb64f9710b4543f2f46c5305dcb11fc (patch) | |
tree | 65514c3a36a4efeb1f20869ef94c33b107632ac2 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 1193b5e272db7aa969380e95503b2512d3f17270 (diff) | |
download | bcm5719-llvm-ee02499a8fb64f9710b4543f2f46c5305dcb11fc.tar.gz bcm5719-llvm-ee02499a8fb64f9710b4543f2f46c5305dcb11fc.zip |
Add coverage mapping generation.
This patch adds the '-fcoverage-mapping' option which
allows clang to generate the coverage mapping information
that can be used to provide code coverage analysis using
the execution counts obtained from the instrumentation
based profiling (-fprofile-instr-generate).
llvm-svn: 214752
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 8ff02b390e4..d609ac745bf 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -829,6 +829,7 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, StartFunction(GD, ResTy, Fn, FnInfo, Args, Loc, BodyRange.getBegin()); // Generate the body of the function. + PGO.checkGlobalDecl(GD); PGO.assignRegionCounters(GD.getDecl(), CurFn); if (isa<CXXDestructorDecl>(FD)) EmitDestructorBody(Args); |