summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/code-coverage.c
Commit message (Collapse)AuthorAgeFilesLines
* [Coverage] Update test after r284418.Davide Italiano2016-10-171-1/+1
| | | | | | We now strip coverage metadata if debug info are not present. llvm-svn: 284419
* Add -fprofile-dir= to clang.Nick Lewycky2016-08-311-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
* The flag "-coverage-function-names-in-data" is actually backwards -- we doNick Lewycky2013-03-201-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
* Update testcase for r177340.Bill Wendling2013-03-181-1/+1
| | | | llvm-svn: 177344
* Attempt to clean up tests for non-X86 platforms.Bill Wendling2013-02-201-6/+5
| | | | llvm-svn: 175652
* Modify the tests to use attribute group references instead of listing theBill Wendling2013-02-201-4/+7
| | | | | | function attributes. llvm-svn: 175606
* Now that the uninitialized variable has been fixed in llvm, add this test back,Rafael Espindola2012-12-181-0/+20
| | | | | | but remove unneeded options and fix the comment. llvm-svn: 170405
* Remove until I can fix this.Bill Wendling2012-12-101-20/+0
| | | | llvm-svn: 169778
* Use correct flags for this test.Bill Wendling2012-12-101-1/+2
| | | | llvm-svn: 169768
* Fixup test case from r169755. These are driver options, not frontend options. Chad Rosier2012-12-101-1/+1
| | | | | | Also, add the -S option. llvm-svn: 169763
* Specify if `-mno-red-zone' was used when creating the GCOV instrucmentation ↵Bill Wendling2012-12-101-0/+19
pass. This prevents the functions generated by that pass from using the red zone. <rdar://problem/12843084> llvm-svn: 169755
OpenPOWER on IntegriCloud