Merging r258406:
authorHans Wennborg <hans@hanshq.net>
Mon, 25 Jan 2016 22:24:50 +0000 (22:24 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 25 Jan 2016 22:24:50 +0000 (22:24 +0000)
commit836d2ad83c5e955a23f6e3b78418cb250c95c88b
treec4d8fa01f57196bfd7cf4efa850e7b1047f80631
parent16f83af7618a4dfb4ef1891b07adb23cc54e4c86
Merging r258406:
------------------------------------------------------------------------
r258406 | vedantk | 2016-01-21 09:04:42 -0800 (Thu, 21 Jan 2016) | 16 lines

[GCOV] Avoid emitting profile arcs for module and skeleton CUs

Do not emit profile arc files and note files for module and skeleton
CU's.

Our users report seeing unexpected *.gcda and *.gcno files in their
projects when using gcov-style profiling with modules or frameworks.
The unwanted files come from these modules. This is not very helpful
for end-users. Further, we've seen reports of instrumented programs
crashing while writing these files out (due to I/O failures).

rdar://problem/22838296

Reviewed-by: aprantl
Differential Revision: http://reviews.llvm.org/D15997
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@258731 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/GCOVProfiling.cpp
test/Transforms/GCOVProfiling/modules.ll [new file with mode: 0644]