diff options
Diffstat (limited to 'include/llvm/Argument.h')
-rw-r--r-- | include/llvm/Argument.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h index 1751c21ce2..1d92066ce5 100644 --- a/include/llvm/Argument.h +++ b/include/llvm/Argument.h @@ -53,6 +53,9 @@ public: const Argument *getPrev() const { return Prev; } virtual void print(std::ostream &OS) const; + void print(std::ostream *OS) const { + if (OS) print(*OS); + } /// classof - Methods for support type inquiry through isa, cast, and /// dyn_cast: |