Skip to content

Commit d68dd7d

Browse files
committed
Reduce objection creation.
1 parent 2c850da commit d68dd7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

emitter.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def initialize out = IOOutput.new
4545
@debug = :stabs
4646
@lineno = nil
4747
@linelabel = 0
48+
49+
@csi = 92.chr
4850
end
4951

5052

@@ -518,7 +520,7 @@ def string(l, str)
518520
buf = ""
519521
str.each_byte do |b|
520522
if b < 32 || b == 92
521-
buf << 92.chr
523+
buf << @csi
522524
buf << b.to_s(8)
523525
elsif b == 34
524526
buf << '\"'

0 commit comments

Comments
 (0)