summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/libprofile/GCDAProfiling.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove GCDAProfiling.c. This copy is old, the copy in compiler-rt is newer andNick Lewycky2013-03-071-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 functionalityNick Lewycky2013-02-271-2/+2
| | | | | | change! llvm-svn: 176176
* In GCC 4.7, function names are now forbidden from .gcda files. Support this byNick Lewycky2013-02-271-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 Wendling2012-06-151-0/+1
| | | | llvm-svn: 158513
* Small code cleanup. No functionality change.Bill Wendling2012-05-251-9/+4
| | | | llvm-svn: 157502
* Open in read/write mode, creating the file if it doesn't exist.Bill Wendling2012-05-251-3/+3
| | | | llvm-svn: 157501
* Early-continue.Reducing indentation.Bill Wendling2012-05-251-8/+7
| | | | llvm-svn: 157451
* Don't call exit from a runtime.Bill Wendling2012-05-251-2/+6
| | | | llvm-svn: 157450
* Use the correct filename for the error message.Bill Wendling2012-03-281-1/+1
| | | | llvm-svn: 153564
* Use Nakamura's suggestion of bypassing using 'filename' and just the ↵Bill Wendling2012-03-281-5/+2
| | | | | | pointers directly. llvm-svn: 153558
* MSVC doesn't like the mixing of declarations and statements in a .c file.Francois Pichet2012-03-271-1/+2
| | | | llvm-svn: 153549
* Try to use the CWD if the path to the GCDA output is not available (e.g., theBill Wendling2012-03-271-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 Kramer2011-10-081-1/+1
| | | | llvm-svn: 141495
* Use version 402 for the GCDA files when compiling for Apple.Bill Wendling2011-07-281-0/+4
| | | | llvm-svn: 136369
* Fix build for (some versions of?) MinGW. Patch by Ruben Van Boxem.Eli Friedman2011-06-231-1/+1
| | | | llvm-svn: 133741
* Fix MSVC warning regarding mkdir function usage.Francois Pichet2011-05-261-0/+7
| | | | llvm-svn: 132109
* The computation of string length is not that complicated. Fix it, again. :)Nick Lewycky2011-05-051-1/+1
| | | | llvm-svn: 130967
* Update the gcov version used slightly, to make it stop causing modern gcov's toNick Lewycky2011-05-051-2/+15
| | | | | | crash. llvm-svn: 130911
* Create the parent directories to place the .gcda files in if they don't exist.Nick Lewycky2011-05-041-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 Lewycky2011-05-041-1/+1
| | | | llvm-svn: 130834
* Only read *predecessor once so as to fix a theoretical issue where it changesNick Lewycky2011-04-281-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 Lewycky2011-04-261-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 Kramer2011-04-161-3/+2
| | | | llvm-svn: 129638
* Don't use C++ comments in C code.Nick Lewycky2011-04-161-1/+1
| | | | llvm-svn: 129637
* Rename LineProfiling to GCOVProfiling to more accurately represent what itNick Lewycky2011-04-161-0/+104
does. Also mostly implement it. Still a work-in-progress, but generates legal output on crafted test cases. llvm-svn: 129630
OpenPOWER on IntegriCloud