summaryrefslogtreecommitdiff
path: root/src/functional.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/functional.cpp')
-rw-r--r--src/functional.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/functional.cpp b/src/functional.cpp
new file mode 100644
index 000000000000..5c2646f01b2e
--- /dev/null
+++ b/src/functional.cpp
@@ -0,0 +1,26 @@
+//===----------------------- functional.cpp -------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "functional"
+
+_LIBCPP_BEGIN_NAMESPACE_STD
+
+#ifdef _LIBCPP_ABI_BAD_FUNCTION_CALL_KEY_FUNCTION
+bad_function_call::~bad_function_call() _NOEXCEPT
+{
+}
+
+const char*
+bad_function_call::what() const _NOEXCEPT
+{
+ return "std::bad_function_call";
+}
+#endif
+
+_LIBCPP_END_NAMESPACE_STD