llvm-6502/tools/extract
Misha Brukman ca718e41cf Add command-line option to select whether to isolate or delete function from
module. Default is `isolate' as before.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13113 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-22 23:07:39 +00:00
..
extract.cpp Add command-line option to select whether to isolate or delete function from 2004-04-22 23:07:39 +00:00
Makefile New library needed 2003-10-22 03:40:33 +00:00
README.txt

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 necessary, giving you 
something simpler.

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