summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/CMakeLists.txt1
-rw-r--r--llvm/lib/Support/Optional.cpp15
2 files changed, 16 insertions, 0 deletions
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt
index 2a6810672b1..7e791594587 100644
--- a/llvm/lib/Support/CMakeLists.txt
+++ b/llvm/lib/Support/CMakeLists.txt
@@ -106,6 +106,7 @@ add_llvm_library(LLVMSupport
MemoryBuffer.cpp
MD5.cpp
NativeFormatting.cpp
+ Optional.cpp
Options.cpp
Parallel.cpp
PluginLoader.cpp
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