1
0
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:
Chris Lattner 2004-07-11 03:18:30 +00:00
parent 2ada866a78
commit 3f154d5c7c

View File

@ -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; }
};