aboutsummaryrefslogtreecommitdiff
path: root/tools/autodebugger.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-25 22:01:17 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-25 22:01:17 -0800
commite91fc01a60a2cb27fa436cedef9181d8bddf01ac (patch)
tree49fbb1fe181c7857f14c5d79887026249563c497 /tools/autodebugger.py
parent6ad714c41644ce9099cca76a0443ce9ff05594a0 (diff)
fix autodebugger
Diffstat (limited to 'tools/autodebugger.py')
-rw-r--r--tools/autodebugger.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/autodebugger.py b/tools/autodebugger.py
index 4ef9685d..c74e56d2 100644
--- a/tools/autodebugger.py
+++ b/tools/autodebugger.py
@@ -21,8 +21,6 @@ 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:
@@ -95,8 +93,6 @@ POSTAMBLE_NEW = '''
@.emscripten.autodebug.str.2 = private constant [13 x i8] c"AD:%d,%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 = trunc i64 %value to i32
@@ -150,6 +146,10 @@ if 'declare i32 @printf(' not in data:
; [#uses=1]
declare i32 @printf(i8*, ...)
'''
+ POSTAMBLE_NEW += '''
+; [#uses=1]
+declare i32 @printf(i8*, ...)
+'''
LLVM_STYLE_OLD = '<label>' not in data and 'entry:' in data