mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
CommandLine: Add support for 64 bit unsigned integer options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -805,6 +805,28 @@ public:
|
||||
|
||||
EXTERN_TEMPLATE_INSTANTIATION(class basic_parser<unsigned>);
|
||||
|
||||
//--------------------------------------------------
|
||||
// parser<unsigned long long>
|
||||
//
|
||||
template<>
|
||||
class parser<unsigned long long> : public basic_parser<unsigned long long> {
|
||||
public:
|
||||
// parse - Return true on error.
|
||||
bool parse(Option &O, StringRef ArgName, StringRef Arg,
|
||||
unsigned long long &Val);
|
||||
|
||||
// getValueName - Overload in subclass to provide a better default value.
|
||||
virtual const char *getValueName() const { return "uint"; }
|
||||
|
||||
void printOptionDiff(const Option &O, unsigned long long V, OptVal Default,
|
||||
size_t GlobalWidth) const;
|
||||
|
||||
// An out-of-line virtual method to provide a 'home' for this class.
|
||||
virtual void anchor();
|
||||
};
|
||||
|
||||
EXTERN_TEMPLATE_INSTANTIATION(class basic_parser<unsigned long long>);
|
||||
|
||||
//--------------------------------------------------
|
||||
// parser<double>
|
||||
//
|
||||
|
Reference in New Issue
Block a user