lib/furnace/ssa/value.rb in furnace-0.4.0.beta.1 vs lib/furnace/ssa/value.rb in furnace-0.4.0.beta.2
- old
+ new
@@ -1,17 +1,21 @@
module Furnace
class SSA::Value
def initialize
@uses = Set.new
+
+ SSA.instrument(self)
end
def initialize_copy(original)
@uses = Set.new
+
+ SSA.instrument(self)
end
def type
- SSA.void
+ Type::Bottom.new
end
def constant?
false
end
@@ -49,14 +53,14 @@
def ==(other)
other.respond_to?(:to_value) &&
equal?(other.to_value)
end
- def pretty_print(p=SSA::PrettyPrinter.new)
- inspect_as_value(p)
+ def awesome_print(p=AwesomePrinter.new)
+ awesome_print_as_value(p)
end
- def inspect_as_value(p=SSA::PrettyPrinter.new)
+ def awesome_print_as_value(p=AwesomePrinter.new)
p.text inspect
end
end
-end
\ No newline at end of file
+end