mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Add support for 'unsigned' command line arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6928 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -515,6 +515,21 @@ struct parser<int> : public basic_parser<int> {
|
||||
};
|
||||
|
||||
|
||||
//--------------------------------------------------
|
||||
// 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>
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user