summaryrefslogtreecommitdiffstats
path: root/libcxx/src
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2010-08-22 13:53:14 +0000
committerHoward Hinnant <hhinnant@apple.com>2010-08-22 13:53:14 +0000
commitfae824a32df7241749d9d030661807e65d8defa9 (patch)
tree0aa0c488391785a16bfb5cdca4b20b1d2b592ffc /libcxx/src
parentc29eb8a9d15495c00df011230d27dfb1ce8ecd31 (diff)
downloadbcm5719-llvm-fae824a32df7241749d9d030661807e65d8defa9.tar.gz
bcm5719-llvm-fae824a32df7241749d9d030661807e65d8defa9.zip
Remove tabs
llvm-svn: 111778
Diffstat (limited to 'libcxx/src')
-rw-r--r--libcxx/src/exception.cpp42
-rw-r--r--libcxx/src/new.cpp8
2 files changed, 25 insertions, 25 deletions
diff --git a/libcxx/src/exception.cpp b/libcxx/src/exception.cpp
index 5b3c39cf2be..fcf98af574a 100644
--- a/libcxx/src/exception.cpp
+++ b/libcxx/src/exception.cpp
@@ -35,7 +35,7 @@ void
std::unexpected()
{
(*__unexpected_handler)();
- // unexpected handler should not return
+ // unexpected handler should not return
std::terminate();
}
@@ -70,7 +70,7 @@ std::terminate()
bool std::uncaught_exception() throw()
{
#if __APPLE__
- // on Darwin, there is a helper function so __cxa_get_globals is private
+ // on Darwin, there is a helper function so __cxa_get_globals is private
return __cxxabiapple::__cxa_uncaught_exception();
#else // __APPLE__
#warning uncaught_exception not yet implemented
@@ -107,8 +107,8 @@ exception_ptr::~exception_ptr()
#if __APPLE__
__cxxabiapple::__cxa_decrement_exception_refcount(__ptr_);
#else
- #warning exception_ptr not yet implemented
- ::abort();
+ #warning exception_ptr not yet implemented
+ ::abort();
#endif // __APPLE__
}
@@ -118,8 +118,8 @@ exception_ptr::exception_ptr(const exception_ptr& other)
#if __APPLE__
__cxxabiapple::__cxa_increment_exception_refcount(__ptr_);
#else
- #warning exception_ptr not yet implemented
- ::abort();
+ #warning exception_ptr not yet implemented
+ ::abort();
#endif // __APPLE__
}
@@ -130,12 +130,12 @@ exception_ptr& exception_ptr::operator=(const exception_ptr& other)
{
__cxxabiapple::__cxa_increment_exception_refcount(other.__ptr_);
__cxxabiapple::__cxa_decrement_exception_refcount(__ptr_);
- __ptr_ = other.__ptr_;
- }
+ __ptr_ = other.__ptr_;
+ }
return *this;
#else // __APPLE__
- #warning exception_ptr not yet implemented
- ::abort();
+ #warning exception_ptr not yet implemented
+ ::abort();
#endif // __APPLE__
}
@@ -161,26 +161,26 @@ nested_exception::rethrow_nested /*[[noreturn]]*/ () const
std::exception_ptr std::current_exception()
{
#if __APPLE__
- // be nicer if there was a constructor that took a ptr, then
- // this whole function would be just:
- // return exception_ptr(__cxa_current_primary_exception());
+ // be nicer if there was a constructor that took a ptr, then
+ // this whole function would be just:
+ // return exception_ptr(__cxa_current_primary_exception());
std::exception_ptr ptr;
- ptr.__ptr_ = __cxxabiapple::__cxa_current_primary_exception();
- return ptr;
+ ptr.__ptr_ = __cxxabiapple::__cxa_current_primary_exception();
+ return ptr;
#else // __APPLE__
- #warning exception_ptr not yet implemented
- ::abort();
+ #warning exception_ptr not yet implemented
+ ::abort();
#endif // __APPLE__
}
void std::rethrow_exception(exception_ptr p)
{
#if __APPLE__
- __cxxabiapple::__cxa_rethrow_primary_exception(p.__ptr_);
- // if p.__ptr_ is NULL, above returns so we terminate
+ __cxxabiapple::__cxa_rethrow_primary_exception(p.__ptr_);
+ // if p.__ptr_ is NULL, above returns so we terminate
terminate();
#else // __APPLE__
- #warning exception_ptr not yet implemented
- ::abort();
+ #warning exception_ptr not yet implemented
+ ::abort();
#endif // __APPLE__
}
diff --git a/libcxx/src/new.cpp b/libcxx/src/new.cpp
index ff06a9f12ce..c0c9bf182e5 100644
--- a/libcxx/src/new.cpp
+++ b/libcxx/src/new.cpp
@@ -14,11 +14,11 @@
#if __APPLE__
#include <cxxabi.h>
// On Darwin, there are two STL shared libraries and a lower level ABI
- // shared libray. The global holding the current new handler is
+ // shared libray. The global holding the current new handler is
// in the ABI library and named __cxa_new_handler.
#define __new_handler __cxxabiapple::__cxa_new_handler
#else // __APPLE__
- static std::new_handler __new_handler;
+ static std::new_handler __new_handler;
#endif
// Implement all new and delete operators as weak definitions
@@ -34,8 +34,8 @@ operator new(std::size_t size) throw (std::bad_alloc)
void* p;
while ((p = ::malloc(size)) == 0)
{
- // If malloc fails and there is a new_handler,
- // call it to try free up memory.
+ // If malloc fails and there is a new_handler,
+ // call it to try free up memory.
if (__new_handler)
__new_handler();
else
OpenPOWER on IntegriCloud