aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/JSBackend/CallHandlers.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/JSBackend/CallHandlers.h')
-rw-r--r--lib/Target/JSBackend/CallHandlers.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/JSBackend/CallHandlers.h b/lib/Target/JSBackend/CallHandlers.h
index bfdd86571c..b8ad71662d 100644
--- a/lib/Target/JSBackend/CallHandlers.h
+++ b/lib/Target/JSBackend/CallHandlers.h
@@ -181,6 +181,12 @@ DEF_CALL_HANDLER(emscripten_get_longjmp_result, {
return getAssign(CI) + "tempRet0";
})
+// emscripten instrinsics
+DEF_CALL_HANDLER(emscripten_debugger, {
+ CanValidate = false;
+ return "debugger";
+})
+
// i64 support
DEF_CALL_HANDLER(getHigh32, {
@@ -744,6 +750,7 @@ void setupCallHandlers() {
SETUP_CALL_HANDLER(emscripten_longjmp);
SETUP_CALL_HANDLER(emscripten_check_longjmp);
SETUP_CALL_HANDLER(emscripten_get_longjmp_result);
+ SETUP_CALL_HANDLER(emscripten_debugger);
SETUP_CALL_HANDLER(getHigh32);
SETUP_CALL_HANDLER(setHigh32);
SETUP_CALL_HANDLER(FtoILow);