Skip to content

Commit 41fe5e4

Browse files
committed
BIR disassembler: use standard printing for constants
so e.g. you get (constant-reference '"hello world") instead of just (constant-reference 'hello world), which was confusing.
1 parent f7a1ebb commit 41fe5e4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

BIR/disassemble.lisp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
(destructuring-bind (assign outs . rest) inst-disasm
172172
(declare (cl:ignore assign))
173173
(format t "~& ")
174-
(format t "~{~(~a~)~}" rest)
174+
(format t "~{~(~s~)~}" rest)
175175
(when outs
176176
(format t " -> "))
177177
(format t "~{~a~^, ~}" (mapcar #'first outs))
@@ -182,7 +182,7 @@
182182
types)
183183
(every (lambda (type-spec) (eq type-spec nil)) type-specs))
184184
(format t "~45T; ")
185-
(format t "~{ctype: ~a~^, ~}" types)))))
185+
(format t "~{ctype: ~s~^, ~}" types)))))
186186
(values))
187187

188188
(defun cleavir-bir-disassembler:display-iblock-disassembly
@@ -197,7 +197,7 @@
197197
(when show-dynenv
198198
(format t "~& dynenv = ~a" dynenv))
199199
(when entrances
200-
(format t "~& entrances = ~(~:a~)" entrances))
200+
(format t "~& entrances = ~(~:s~)" entrances))
201201
(mapc #'cleavir-bir-disassembler:display-instruction-disassembly insts))
202202
(values))
203203

0 commit comments

Comments
 (0)