Permalink
Browse files

fix autodebugger

  • Loading branch information...
1 parent 6ad714c commit e91fc01a60a2cb27fa436cedef9181d8bddf01ac @kripken committed Dec 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 tools/autodebugger.py
View
@@ -21,8 +21,6 @@
@.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 @@
@.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 @@
; [#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

0 comments on commit e91fc01

Please sign in to comment.