mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Provide better support for pointer-valued command line arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d36c970a11
commit
6a4dd24a99
@ -711,6 +711,9 @@ struct opt_storage<DataType, false, false> {
|
||||
void setValue(const T &V) { Value = V; }
|
||||
DataType &getValue() { return Value; }
|
||||
DataType getValue() const { return Value; }
|
||||
|
||||
// If the datatype is a pointer, support -> on it.
|
||||
DataType operator->() const { return Value; }
|
||||
};
|
||||
|
||||
|
||||
|
@ -711,6 +711,9 @@ struct opt_storage<DataType, false, false> {
|
||||
void setValue(const T &V) { Value = V; }
|
||||
DataType &getValue() { return Value; }
|
||||
DataType getValue() const { return Value; }
|
||||
|
||||
// If the datatype is a pointer, support -> on it.
|
||||
DataType operator->() const { return Value; }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user