Permalink
Browse files

Renaming of ir_instrs to pretty_ir

  • Loading branch information...
1 parent 1cba32b commit bf58ef7e21aaa77aa0aa6409e6996b18a2068f1e @komax committed Jul 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/ast
View
@@ -209,7 +209,7 @@ end
module IRPrettyPrinter
- def self.ir_instrs(scope, indent="")
+ def self.pretty_ir(scope, indent="")
instrs = scope.instrs.map do |instr|
indent + instr.to_s
end
@@ -220,7 +220,7 @@ module IRPrettyPrinter
end
def self.print_ir(scope)
- instrs = ir_instrs(scope)
+ instrs = pretty_ir(scope)
instrs.each do |instr|
puts instr
end

0 comments on commit bf58ef7

Please sign in to comment.