1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-27 22:12:47 +01:00
llvm-mirror/tools/extract
Chris Lattner dfd421a7df MEGAPATCH checkin.
For details, See: docs/2002-06-25-MegaPatchInfo.txt

llvm-svn: 2779
2002-06-25 16:13:24 +00:00
..
extract.cpp MEGAPATCH checkin. 2002-06-25 16:13:24 +00:00
Makefile Initial checkin of the "extract" utility 2002-05-22 20:27:00 +00:00
README.txt Checkin descriptive note 2002-06-24 16:49:55 +00:00

I checked in a new tool, primarily useful for debugging.  Given a module 
and a function name, it extracts just the specified function from the 
module, with a minimum of related cruft (global variables, function 
prototypes, etc).

This is useful because often something will die (for example SCCP 
miscompiles one function of a large benchmark), and so you want to just 
cut the testcase down to the one function that is being a problem.  In 
this case, 'extract' eliminates all of the extraneous global variables, 
type information, and functions that aren't neccesary, giving you 
something simpler.

This is just an FYI, because I've found it useful and thought you guys 
might as well.