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