aboutsummaryrefslogtreecommitdiff
path: root/tools/autodebugger.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-24 16:06:11 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-24 16:06:11 -0800
commit2833fb1d294ffa18e9c58e8eb2ca1a72670afd87 (patch)
treec3b28eff6119ba2bce72ab37cbd016a54dd63d5b /tools/autodebugger.py
parentc24e2e41943f1a2968ac686d0d164fb6585d754f (diff)
debugging tool tweaks
Diffstat (limited to 'tools/autodebugger.py')
-rw-r--r--tools/autodebugger.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/autodebugger.py b/tools/autodebugger.py
index 3631548c..1823320f 100644
--- a/tools/autodebugger.py
+++ b/tools/autodebugger.py
@@ -20,6 +20,8 @@ POSTAMBLE = '''
@.emscripten.autodebug.str.f = private constant [11 x i8] c"AD:%d,%lf\\0A\\00", align 1 ; [#uses=1]
@.emscripten.autodebug.str.64 = private constant [13 x i8] c"AD:%d,%d,%d\\0A\\00", align 1 ; [#uses=1]
+declare i32 @printf(i8*, ...)
+
; [#uses=1]
define void @emscripten_autodebug_i64(i32 %line, i64 %value) {
entry:
@@ -91,6 +93,8 @@ POSTAMBLE_NEW = '''
@.emscripten.autodebug.str = private constant [10 x i8] c"AD:%d,%d\\0A\\00", align 1 ; [#uses=1]
@.emscripten.autodebug.str.f = private constant [11 x i8] c"AD:%d,%lf\\0A\\00", align 1 ; [#uses=1]
+declare i32 @printf(i8*, ...)
+
; [#uses=1]
define void @emscripten_autodebug_i64(i32 %line, i64 %value) {
%1 = sitofp i64 %value to double