aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-03 21:09:27 -0500
committerAlon Zakai <alonzakai@gmail.com>2013-12-03 21:09:27 -0500
commit6ae3ade0ce486f0811d9b05c550daeeb97c7425f (patch)
tree716dfe17be618f5cb55027bd9d6b3d5c630ede7f
parentfbf03292609037757e57e35877f44ded1fcdb6db (diff)
__cxa_atexit redirect
-rw-r--r--lib/Target/CppBackend/CallHandlers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/CppBackend/CallHandlers.h b/lib/Target/CppBackend/CallHandlers.h
index ac8c051884..df7320afa7 100644
--- a/lib/Target/CppBackend/CallHandlers.h
+++ b/lib/Target/CppBackend/CallHandlers.h
@@ -62,6 +62,7 @@ DEF_CALL_HANDLER(name, { \
// Various simple redirects for our js libc, see library.js
DEF_REDIRECT_HANDLER_i(putc, fputc);
+DEF_REDIRECT_HANDLER_i(__cxa_atexit, atexit);
// Setups
@@ -76,6 +77,7 @@ void setupCallHandlers() {
SETUP_CALL_HANDLER(llvm_memset_p0i8_i32);
SETUP_CALL_HANDLER(llvm_memmove_p0i8_p0i8_i32);
SETUP_CALL_HANDLER(putc);
+ SETUP_CALL_HANDLER(__cxa_atexit);
}
std::string handleCall(const CallInst *CI) {