summaryrefslogtreecommitdiff
path: root/tools/extract/extract.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/extract/extract.cpp')
-rw-r--r--tools/extract/extract.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/extract/extract.cpp b/tools/extract/extract.cpp
index d1680c0967..4730f54250 100644
--- a/tools/extract/extract.cpp
+++ b/tools/extract/extract.cpp
@@ -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"; }