aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r--include/llvm/Value.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 157ef6e2b6..5dfe63f1b0 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -18,6 +18,7 @@
#include "llvm/AbstractTypeUser.h"
#include "llvm/Use.h"
#include "llvm/Support/Casting.h"
+#include "llvm/Support/Streams.h"
#include <string>
namespace llvm {
@@ -74,6 +75,9 @@ public:
/// print - Implement operator<< on Value...
///
+ void print(llvm_ostream &O) const {
+ if (O.stream()) print(*O.stream());
+ }
virtual void print(std::ostream &O) const = 0;
/// All values are typed, get the type of this value.