Add coverage mapping generation.
authorAlex Lorenz <arphaman@gmail.com>
Mon, 4 Aug 2014 18:41:51 +0000 (18:41 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 4 Aug 2014 18:41:51 +0000 (18:41 +0000)
commitee02499a8fb64f9710b4543f2f46c5305dcb11fc
tree65514c3a36a4efeb1f20869ef94c33b107632ac2
parent1193b5e272db7aa969380e95503b2512d3f17270
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
16 files changed:
clang/include/clang/CodeGen/CodeGenABITypes.h
clang/include/clang/CodeGen/ModuleBuilder.h
clang/include/clang/Driver/Options.td
clang/include/clang/Frontend/CodeGenOptions.def
clang/lib/CodeGen/CodeGenABITypes.cpp
clang/lib/CodeGen/CodeGenAction.cpp
clang/lib/CodeGen/CodeGenFunction.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h
clang/lib/CodeGen/CodeGenPGO.cpp
clang/lib/CodeGen/CodeGenPGO.h
clang/lib/CodeGen/CoverageMappingGen.cpp [new file with mode: 0644]
clang/lib/CodeGen/CoverageMappingGen.h [new file with mode: 0644]
clang/lib/CodeGen/ModuleBuilder.cpp
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/CompilerInvocation.cpp