[llvm-commits] CVS: llvm/include/Support/CommandLine.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Jun 28 10:48:14 PDT 2003
Changes in directory llvm/include/Support:
CommandLine.h updated: 1.14 -> 1.15
---
Log message:
Add support for 'unsigned' command line arguments
---
Diffs of the changes:
Index: llvm/include/Support/CommandLine.h
diff -u llvm/include/Support/CommandLine.h:1.14 llvm/include/Support/CommandLine.h:1.15
--- llvm/include/Support/CommandLine.h:1.14 Sat Jun 21 22:08:05 2003
+++ llvm/include/Support/CommandLine.h Sat Jun 28 10:47:18 2003
@@ -516,6 +516,21 @@
//--------------------------------------------------
+// parser<unsigned>
+//
+template<>
+struct parser<unsigned> : public basic_parser<unsigned> {
+
+ // parse - Return true on error.
+ bool parse(Option &O, const char *ArgName, const std::string &Arg,
+ unsigned &Val);
+
+ // getValueName - Overload in subclass to provide a better default value.
+ virtual const char *getValueName() const { return "uint"; }
+};
+
+
+//--------------------------------------------------
// parser<double>
//
template<>
More information about the llvm-commits
mailing list