Move the exception handling runtime stuff into this directory
authorChris Lattner <sabre@nondot.org>
Mon, 15 Sep 2003 15:06:39 +0000 (15:06 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Sep 2003 15:06:39 +0000 (15:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8530 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/GCCLibraries/crtend/Makefile
runtime/GCCLibraries/crtend/exported_symbol_list.lst [new file with mode: 0644]

index 9bfb9d1ed85474ed27177244167db12beffeac9a..f542f53d41d850d7216da2bad66524401b71d726 100644 (file)
@@ -3,9 +3,9 @@ BYTECODE_LIBRARY=1
 DONT_BUILD_RELINKED=1
 LIBRARYNAME=crtend
 
-Source = crtend.c listend.ll
+Source = $(wildcard *.cpp) $(wildcard *.c) listend.ll
 
-EXPORTED_SYMBOL_LIST = __main,llvm.global_ctors,llvm.global_dtors
+EXPORTED_SYMBOL_FILE = exported_symbol_list.lst
 
 include $(LEVEL)/Makefile.common
 
@@ -14,4 +14,5 @@ $(LLVMGCCDIR)/bytecode-libs/crtend.o: $(LIBNAME_BC)
        @cp $< $@
 
 install:: $(LLVMGCCDIR)/bytecode-libs/crtend.o
-       @rm $(LLVMGCCDIR)/bytecode-libs/libcrtend.bc
\ No newline at end of file
+       @rm $(LLVMGCCDIR)/bytecode-libs/libcrtend.bc
+
diff --git a/runtime/GCCLibraries/crtend/exported_symbol_list.lst b/runtime/GCCLibraries/crtend/exported_symbol_list.lst
new file mode 100644 (file)
index 0000000..df12cc8
--- /dev/null
@@ -0,0 +1,29 @@
+__main
+llvm.global_ctors
+llvm.global_dtors
+
+__llvm_eh_has_uncaught_exception
+__llvm_eh_current_uncaught_exception_type
+__llvm_eh_add_uncaught_exception
+__llvm_eh_get_uncaught_exception
+__llvm_eh_pop_from_uncaught_stack
+
+__llvm_cxxeh_allocate_exception
+__llvm_cxxeh_free_exception
+__llvm_cxxeh_throw
+__llvm_cxxeh_call_terminate
+__llvm_cxxeh_current_uncaught_exception_isa
+__llvm_cxxeh_begin_catch
+__llvm_cxxeh_begin_catch_if_isa
+__llvm_cxxeh_end_catch
+__llvm_cxxeh_rethrow
+__llvm_cxxeh_get_last_caught
+__llvm_cxxeh_check_eh_spec
+
+__llvm_sjljeh_throw_longjmp
+__llvm_sjljeh_init_setjmpmap
+__llvm_sjljeh_destroy_setjmpmap
+__llvm_sjljeh_add_setjmp_to_map
+__llvm_sjljeh_is_longjmp_exception
+__llvm_sjljeh_get_longjmp_value
+__llvm_sjljeh_try_catching_longjmp_exception