summaryrefslogtreecommitdiff
path: root/runtime/GCCLibraries/crtend/Exception.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-08 05:13:40 +0000
committerChris Lattner <sabre@nondot.org>2003-11-08 05:13:40 +0000
commita3954095dc5e1bd2ba78d52d5a94445e2724a5bc (patch)
tree73ea0b00fd215d5b92debe7b5f05eb7cd8c4f388 /runtime/GCCLibraries/crtend/Exception.cpp
parent0ef190686c87b3657b6edafbd5dd3836c8e31b38 (diff)
downloadllvm-a3954095dc5e1bd2ba78d52d5a94445e2724a5bc.tar.gz
llvm-a3954095dc5e1bd2ba78d52d5a94445e2724a5bc.tar.bz2
llvm-a3954095dc5e1bd2ba78d52d5a94445e2724a5bc.tar.xz
Fix wierd problems linking C programs which look for symbols in libstdc++.
This was due to the 'assert' macro expanding into a function call on some platforms which could throw. The C++ compiler then added checks for the exception specifications in these functions, which pulled in the C++ runtime. This was bad, and the assertions can never fire (the library is now debugged) so just remove them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/GCCLibraries/crtend/Exception.cpp')
-rw-r--r--runtime/GCCLibraries/crtend/Exception.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/GCCLibraries/crtend/Exception.cpp b/runtime/GCCLibraries/crtend/Exception.cpp
index 156b714cb1..d4ac290122 100644
--- a/runtime/GCCLibraries/crtend/Exception.cpp
+++ b/runtime/GCCLibraries/crtend/Exception.cpp
@@ -6,7 +6,6 @@
//===----------------------------------------------------------------------===//
#include "Exception.h"
-#include <cassert>
// Thread local state for exception handling. FIXME: This should really be made
// thread-local!
@@ -26,7 +25,6 @@ bool __llvm_eh_has_uncaught_exception() throw() {
// returns a pointer to the exception area data.
//
void *__llvm_eh_current_uncaught_exception_type(unsigned HandlerType) throw() {
- assert(UncaughtExceptionStack && "No uncaught exception!");
if (UncaughtExceptionStack->ExceptionType == HandlerType)
return UncaughtExceptionStack+1;
return 0;
@@ -44,7 +42,6 @@ void __llvm_eh_add_uncaught_exception(llvm_exception *E) throw() {
// __llvm_eh_get_uncaught_exception - Returns the current uncaught exception.
// There must be an uncaught exception for this to work!
llvm_exception *__llvm_eh_get_uncaught_exception() throw() {
- assert(UncaughtExceptionStack && "There are no uncaught exceptions!?!?");
return UncaughtExceptionStack;
}