summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-11 03:18:30 +0000
committerChris Lattner <sabre@nondot.org>2004-07-11 03:18:30 +0000
commitb84e7c523a9f39383b79107e8f2f699bcfe37e66 (patch)
treeeabe02d0ed1615714bebef26e772108f4589c351 /llvm/include
parent4266f8017d974f10ce424b1475663755cd6f03d5 (diff)
downloadbcm5719-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')
-rw-r--r--llvm/include/Support/CommandLine.h3
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; }
};
OpenPOWER on IntegriCloud