now works with -fno-exceptions and -fno-rtti

llvm-svn: 110828
diff --git a/libcxx/src/system_error.cpp b/libcxx/src/system_error.cpp
index 3c1f000..1ca85cb 100644
--- a/libcxx/src/system_error.cpp
+++ b/libcxx/src/system_error.cpp
@@ -193,7 +193,9 @@
 void
 __throw_system_error(int ev, const char* what_arg)
 {
+#ifndef _LIBCPP_NO_EXCEPTIONS
     throw system_error(error_code(ev, system_category()), what_arg);
+#endif
 }
 
 _LIBCPP_END_NAMESPACE_STD