*** empty log message ***

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-07-22 02:10:13 +00:00
parent 50e3f88d38
commit 5ff62e90d0
31 changed files with 424 additions and 201 deletions

View File

@ -18,8 +18,17 @@
#include "Support/CommandLine.h"
#include <memory>
static cl::String InputFilename("", "Specify input bytecode file", 0, "-");
static cl::String ExtractFunc("func", "Specify function to extract", 0, "main");
// InputFilename - The filename to read from.
static cl::opt<string>
InputFilename(cl::Positional, cl::desc("<input bytecode file>"),
cl::init("-"), cl::value_desc("filename"));
// ExtractFunc - The function to extract from the module... defaults to main.
static cl::opt<string>
ExtractFunc("func", cl::desc("Specify function to extract"), cl::init("main"),
cl::value_desc("function"));
struct FunctionExtractorPass : public Pass {
const char *getPassName() const { return "Function Extractor"; }