summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Optional.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Optional.cpp')
-rw-r--r--llvm/lib/Support/Optional.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/lib/Support/Optional.cpp b/llvm/lib/Support/Optional.cpp
new file mode 100644
index 00000000000..765b25df13d
--- /dev/null
+++ b/llvm/lib/Support/Optional.cpp
@@ -0,0 +1,15 @@
+//===- Optional.cpp - Optional values ---------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/ADT/Optional.h"
+#include "llvm/Support/raw_ostream.h"
+
+llvm::raw_ostream &llvm::operator<<(raw_ostream &OS, NoneType) {
+ return OS << "None";
+}
OpenPOWER on IntegriCloud