[llvm-commits] CVS: llvm/include/Support/CommandLine.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Jul 10 22:19:01 PDT 2004
Changes in directory llvm/include/Support:
CommandLine.h updated: 1.32 -> 1.33
---
Log message:
Provide better support for pointer-valued command line arguments
---
Diffs of the changes: (+3 -0)
Index: llvm/include/Support/CommandLine.h
diff -u llvm/include/Support/CommandLine.h:1.32 llvm/include/Support/CommandLine.h:1.33
--- llvm/include/Support/CommandLine.h:1.32 Thu Jun 3 17:07:26 2004
+++ llvm/include/Support/CommandLine.h Sat Jul 10 22:18:30 2004
@@ -711,6 +711,9 @@
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; }
};
More information about the llvm-commits
mailing list