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 | 6a4dd24a995072c9c6f1ae45f19f94010d8389fb (patch) | |
tree | c34c66448a9089f85600b279f03d507b8d90e4be /include/llvm/Support | |
parent | d36c970a11633414e56ac1e03010dafa4a63b9c4 (diff) | |
download | external_llvm-6a4dd24a995072c9c6f1ae45f19f94010d8389fb.zip external_llvm-6a4dd24a995072c9c6f1ae45f19f94010d8389fb.tar.gz external_llvm-6a4dd24a995072c9c6f1ae45f19f94010d8389fb.tar.bz2 |
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
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 0d1d148..b7bd62a 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/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; } }; |