[llvm-commits] CVS: llvm/runtime/GCCLibraries/crtend/C++-Exception.h SJLJ-Exception.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 8 18:31:01 PST 2003


Changes in directory llvm/runtime/GCCLibraries/crtend:

C++-Exception.h updated: 1.8 -> 1.9
SJLJ-Exception.cpp updated: 1.2 -> 1.3

---
Log message:

Totally disable assert, in order to fix PR101


---
Diffs of the changes:  (+10 -0)

Index: llvm/runtime/GCCLibraries/crtend/C++-Exception.h
diff -u llvm/runtime/GCCLibraries/crtend/C++-Exception.h:1.8 llvm/runtime/GCCLibraries/crtend/C++-Exception.h:1.9
--- llvm/runtime/GCCLibraries/crtend/C++-Exception.h:1.8	Sat Aug 30 17:47:59 2003
+++ llvm/runtime/GCCLibraries/crtend/C++-Exception.h	Sat Nov  8 18:29:51 2003
@@ -12,6 +12,11 @@
 #include <typeinfo>
 #include <cassert>
 
+// Assert should only be used for debugging the runtime library.  Enabling it in
+// CVS will break some platforms!
+#undef assert
+#define assert(X)
+
 struct llvm_cxx_exception {
   // TypeInfo - A pointer to the C++ std::type_info object for this exception
   // class.  This is required because the class may not be polymorphic.


Index: llvm/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp
diff -u llvm/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp:1.2 llvm/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp:1.3
--- llvm/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp:1.2	Sat Aug 30 18:31:08 2003
+++ llvm/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp	Sat Nov  8 18:29:51 2003
@@ -9,6 +9,11 @@
 #include <cstdlib>
 #include <cassert>
 
+// Assert should only be used for debugging the runtime library.  Enabling it in
+// CVS will break some platforms!
+#undef assert
+#define assert(X)
+
 // get_sjlj_exception - Adjust the llvm_exception pointer to be an appropriate
 // llvm_sjlj_exception pointer.
 inline llvm_sjlj_exception *get_sjlj_exception(llvm_exception *E) {





More information about the llvm-commits mailing list