mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Provide better support for pointer-valued command line arguments
llvm-svn: 14746
This commit is contained in:
parent
2ada866a78
commit
3f154d5c7c
@ -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…
Reference in New Issue
Block a user