Chris Lattner | 6a45509 | 2002-06-24 16:49:55 +0000 | [diff] [blame] | 1 | I checked in a new tool, primarily useful for debugging. Given a module |
| 2 | and a function name, it extracts just the specified function from the |
| 3 | module, with a minimum of related cruft (global variables, function |
| 4 | prototypes, etc). |
| 5 | |
| 6 | This is useful because often something will die (for example SCCP |
| 7 | miscompiles one function of a large benchmark), and so you want to just |
| 8 | cut the testcase down to the one function that is being a problem. In |
| 9 | this case, 'extract' eliminates all of the extraneous global variables, |
Misha Brukman | 5560c9d | 2003-08-18 14:43:39 +0000 | [diff] [blame] | 10 | type information, and functions that aren't necessary, giving you |
Chris Lattner | 6a45509 | 2002-06-24 16:49:55 +0000 | [diff] [blame] | 11 | something simpler. |
| 12 | |
| 13 | This is just an FYI, because I've found it useful and thought you guys |
| 14 | might as well. |
| 15 | |