Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove GCDAProfiling.c. This copy is old, the copy in compiler-rt is newer and | Nick Lewycky | 2013-03-07 | 1 | -210/+0 |
| | | | | | | is the one that should be used. llvm-svn: 176608 | ||||
* | Forgot that this file needs to be C89 not C99 thanks to MSVC. No functionality | Nick Lewycky | 2013-02-27 | 1 | -2/+2 |
| | | | | | | change! llvm-svn: 176176 | ||||
* | In GCC 4.7, function names are now forbidden from .gcda files. Support this by | Nick Lewycky | 2013-02-27 | 1 | -3/+8 |
| | | | | | | | passing a null pointer to the function name in to GCDAProfiling, and add another switch onto GCOVProfiling. llvm-svn: 176173 | ||||
* | Free the allocated filename. Found by clang static analyzer. | Bill Wendling | 2012-06-15 | 1 | -0/+1 |
| | | | | llvm-svn: 158513 | ||||
* | Small code cleanup. No functionality change. | Bill Wendling | 2012-05-25 | 1 | -9/+4 |
| | | | | llvm-svn: 157502 | ||||
* | Open in read/write mode, creating the file if it doesn't exist. | Bill Wendling | 2012-05-25 | 1 | -3/+3 |
| | | | | llvm-svn: 157501 | ||||
* | Early-continue.Reducing indentation. | Bill Wendling | 2012-05-25 | 1 | -8/+7 |
| | | | | llvm-svn: 157451 | ||||
* | Don't call exit from a runtime. | Bill Wendling | 2012-05-25 | 1 | -2/+6 |
| | | | | llvm-svn: 157450 | ||||
* | Use the correct filename for the error message. | Bill Wendling | 2012-03-28 | 1 | -1/+1 |
| | | | | llvm-svn: 153564 | ||||
* | Use Nakamura's suggestion of bypassing using 'filename' and just the ↵ | Bill Wendling | 2012-03-28 | 1 | -5/+2 |
| | | | | | | pointers directly. llvm-svn: 153558 | ||||
* | MSVC doesn't like the mixing of declarations and statements in a .c file. | Francois Pichet | 2012-03-27 | 1 | -1/+2 |
| | | | | llvm-svn: 153549 | ||||
* | Try to use the CWD if the path to the GCDA output is not available (e.g., the | Bill Wendling | 2012-03-27 | 1 | -0/+14 |
| | | | | | | | | executable has been moved to another machine). If that's not available (read-only or something), then exit gracefully. <rdar://problem/11111686> llvm-svn: 153538 | ||||
* | Include direct.h for _mkdir on mingw32 too. | Benjamin Kramer | 2011-10-08 | 1 | -1/+1 |
| | | | | llvm-svn: 141495 | ||||
* | Use version 402 for the GCDA files when compiling for Apple. | Bill Wendling | 2011-07-28 | 1 | -0/+4 |
| | | | | llvm-svn: 136369 | ||||
* | Fix build for (some versions of?) MinGW. Patch by Ruben Van Boxem. | Eli Friedman | 2011-06-23 | 1 | -1/+1 |
| | | | | llvm-svn: 133741 | ||||
* | Fix MSVC warning regarding mkdir function usage. | Francois Pichet | 2011-05-26 | 1 | -0/+7 |
| | | | | llvm-svn: 132109 | ||||
* | The computation of string length is not that complicated. Fix it, again. :) | Nick Lewycky | 2011-05-05 | 1 | -1/+1 |
| | | | | llvm-svn: 130967 | ||||
* | Update the gcov version used slightly, to make it stop causing modern gcov's to | Nick Lewycky | 2011-05-05 | 1 | -2/+15 |
| | | | | | | crash. llvm-svn: 130911 | ||||
* | Create the parent directories to place the .gcda files in if they don't exist. | Nick Lewycky | 2011-05-04 | 1 | -0/+18 |
| | | | | | | | That's kinda weird because the .gcno files are supposed to already be there, but libgcov does this and somehow Google has managed to depend on it. llvm-svn: 130879 | ||||
* | Fix crash when not setting GCOV_PREFIX. | Nick Lewycky | 2011-05-04 | 1 | -1/+1 |
| | | | | llvm-svn: 130834 | ||||
* | Only read *predecessor once so as to fix a theoretical issue where it changes | Nick Lewycky | 2011-04-28 | 1 | -5/+31 |
| | | | | | | | | | | | | | | | | | | | between two reads (threading). Fix an off-by-one in the indirect counter table that I meant to revert after an earlier experiment. Whoops! Implement GCOV_PREFIX. Doesn't handle GCOV_PREFIX_STRIP yet. Fix an off-by-one in string emission. Extra whoops! Tolerate DISubprograms that have null Function*'s attached to them. I don't yet understand what this means, but it happens when you have a global static with a non-trivial constructor/destructor. Fix a crash on switch statements with a single successor (default-only). llvm-svn: 130443 | ||||
* | Rename everything to follow LLVM style ... I think. | Nick Lewycky | 2011-04-26 | 1 | -5/+28 |
| | | | | | | | | | | | | | | Add support for switch and indirectbr edges. This works by densely numbering all blocks which have such terminators, and then separately numbering the possible successors. The predecessors write down a number, the successor knows its own number (as a ConstantInt) and sends that and the pointer to the number the predecessor wrote down to the runtime, who looks up the counter in a per-function table. Coverage data should now be functional, but I haven't tested it on anything other than my 2-file synthetic test program for coverage. llvm-svn: 130186 | ||||
* | Write out uint64_t as i{0..32},i{33..64} instead of i{0..32},0. | Benjamin Kramer | 2011-04-16 | 1 | -3/+2 |
| | | | | llvm-svn: 129638 | ||||
* | Don't use C++ comments in C code. | Nick Lewycky | 2011-04-16 | 1 | -1/+1 |
| | | | | llvm-svn: 129637 | ||||
* | Rename LineProfiling to GCOVProfiling to more accurately represent what it | Nick Lewycky | 2011-04-16 | 1 | -0/+104 |
does. Also mostly implement it. Still a work-in-progress, but generates legal output on crafted test cases. llvm-svn: 129630 |