aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/code-coverage.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-17[Coverage] Update test after r284418.Davide Italiano1-1/+1
We now strip coverage metadata if debug info are not present. llvm-svn: 284419
2016-08-31Add -fprofile-dir= to clang.Nick Lewycky1-0/+4
-fprofile-dir=path allows the user to specify where .gcda files should be emitted when the program is run. In particular, this is the first flag that causes the .gcno and .o files to have different paths, LLVM is extended to support this. -fprofile-dir= does not change the file name in the .gcno (and thus where lcov looks for the source) but it does change the name in the .gcda (and thus where the runtime library writes the .gcda file). It's different from a GCOV_PREFIX because a user can observe that the GCOV_PREFIX_STRIP will strip paths off of -fprofile-dir= but not off of a supplied GCOV_PREFIX. To implement this we split -coverage-file into -coverage-data-file and -coverage-notes-file to specify the two different names. The !llvm.gcov metadata node grows from a 2-element form {string coverage-file, node dbg.cu} to 3-elements, {string coverage-notes-file, string coverage-data-file, node dbg.cu}. In the 3-element form, the file name is already "mangled" with .gcno/.gcda suffixes, while the 2-element form left that to the middle end pass. llvm-svn: 280306
2013-03-20The flag "-coverage-function-names-in-data" is actually backwards -- we doNick Lewycky1-0/+8
emit function names in .gcda files by default, and the flag turns that off! Rename the flag to make it match what it actually does. This keeps the default format compatible with gcc 4.2. Also add a test for this flag. llvm-svn: 177475
2013-03-18Update testcase for r177340.Bill Wendling1-1/+1
llvm-svn: 177344
2013-02-20Attempt to clean up tests for non-X86 platforms.Bill Wendling1-6/+5
llvm-svn: 175652
2013-02-20Modify the tests to use attribute group references instead of listing theBill Wendling1-4/+7
function attributes. llvm-svn: 175606
2012-12-18Now that the uninitialized variable has been fixed in llvm, add this test back,Rafael Espindola1-0/+20
but remove unneeded options and fix the comment. llvm-svn: 170405
2012-12-10Remove until I can fix this.Bill Wendling1-20/+0
llvm-svn: 169778
2012-12-10Use correct flags for this test.Bill Wendling1-1/+2
llvm-svn: 169768
2012-12-10Fixup test case from r169755. These are driver options, not frontend options. Chad Rosier1-1/+1
Also, add the -S option. llvm-svn: 169763
2012-12-10Specify if `-mno-red-zone' was used when creating the GCOV instrucmentation ↵Bill Wendling1-0/+19
pass. This prevents the functions generated by that pass from using the red zone. <rdar://problem/12843084> llvm-svn: 169755