libcxx initial import
llvm-svn: 103490
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 3e519524c118651123eecf60c2bbc5d65ad9bac3
diff --git a/src/new.cpp b/src/new.cpp
new file mode 100644
index 0000000..4ab199b
--- /dev/null
+++ b/src/new.cpp
@@ -0,0 +1,31 @@
+//===--------------------------- new.cpp ----------------------------------===//
+//
+// ÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊÊThe LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "new"
+
+namespace std
+{
+
+bad_array_new_length::~bad_array_new_length() throw()
+{
+}
+
+const char*
+bad_array_new_length::what() const throw()
+{
+ return "bad_array_new_length";
+}
+
+void
+__throw_bad_alloc()
+{
+ throw bad_alloc();
+}
+
+} // std