summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/code-coverage.c
Commit message (Collapse)AuthorAgeFilesLines
* [gcov] Make the CLang side coverage test work with the newChandler Carruth2018-05-021-7/+15
| | | | | | | | | instrumentation codegeneration strategy of using a data structure and a loop. Required some finesse to get the critical things being tested to surface in a nice way for FileCheck but I think this preserves the original intent of the test. llvm-svn: 331411
* NewPM: Improve/fix GCOV - which needs to run early in the pass pipeline.David Blaikie2018-01-231-0/+6
| | | | | | | Using a new extension point in the new PM, register GCOV at the start of the pipeline rather than the end. llvm-svn: 323167
* Wire up GCOV to the new pass managerDavid Blaikie2018-01-091-1/+4
| | | | | | | | | | GCOV in the old pass manager also strips debug info (if debug info is disabled/only produced for profiling anyway) after the GCOV pass runs. I think the strip pass hasn't been ported to the new pass manager, so it might take me a little while to wire that up. llvm-svn: 322126
* [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