diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-07-11 03:18:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-07-11 03:18:30 +0000 |
| commit | b84e7c523a9f39383b79107e8f2f699bcfe37e66 (patch) | |
| tree | eabe02d0ed1615714bebef26e772108f4589c351 /llvm/include/Support | |
| parent | 4266f8017d974f10ce424b1475663755cd6f03d5 (diff) | |
| download | bcm5719-llvm-b84e7c523a9f39383b79107e8f2f699bcfe37e66.tar.gz bcm5719-llvm-b84e7c523a9f39383b79107e8f2f699bcfe37e66.zip | |
Provide better support for pointer-valued command line arguments
llvm-svn: 14746
Diffstat (limited to 'llvm/include/Support')
| -rw-r--r-- | llvm/include/Support/CommandLine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/Support/CommandLine.h b/llvm/include/Support/CommandLine.h index 0d1d14813cd..b7bd62a3807 100644 --- a/llvm/include/Support/CommandLine.h +++ b/llvm/include/Support/CommandLine.h @@ -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; } }; |

