summaryrefslogtreecommitdiffstats
path: root/llvm/docs/YamlIO.rst
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-05-01 18:20:23 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-05-01 18:20:23 +0000
commit684379a00b1cdda71f4d2b88ee8d323aeaab78fe (patch)
tree8ed20d3307b893261b1ba040a2d25382788925e0 /llvm/docs/YamlIO.rst
parentd27d3a151f4bc9d8b31fcf5916b0090e044e3aa5 (diff)
downloadbcm5719-llvm-684379a00b1cdda71f4d2b88ee8d323aeaab78fe.tar.gz
bcm5719-llvm-684379a00b1cdda71f4d2b88ee8d323aeaab78fe.zip
Update YamlIO documentation for the ScalarTraits class.
This patch adds the missing context parameter to the input and output methods in ScalarTraits. Differential Revision: http://reviews.llvm.org/D9173 llvm-svn: 236328
Diffstat (limited to 'llvm/docs/YamlIO.rst')
-rw-r--r--llvm/docs/YamlIO.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/YamlIO.rst b/llvm/docs/YamlIO.rst
index 3cc683b6b82..8b45b6bb85b 100644
--- a/llvm/docs/YamlIO.rst
+++ b/llvm/docs/YamlIO.rst
@@ -456,10 +456,10 @@ looks like:
template <>
struct ScalarTraits<MyCustomType> {
- static void output(const T &value, llvm::raw_ostream &out) {
+ static void output(const T &value, void*, llvm::raw_ostream &out) {
out << value; // do custom formatting here
}
- static StringRef input(StringRef scalar, T &value) {
+ static StringRef input(StringRef scalar, void*, T &value) {
// do custom parsing here. Return the empty string on success,
// or an error message on failure.
return StringRef();
OpenPOWER on IntegriCloud