19 lines
306 B
Ruby
19 lines
306 B
Ruby
|
require "asm/label_object"
|
||
|
|
||
|
class Asm::Arm::GeneratorLabel < Asm::LabelObject
|
||
|
def initialize(asm)
|
||
|
@asm = asm
|
||
|
end
|
||
|
def set!
|
||
|
@asm.add_object self
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class Asm::Arm::GeneratorExternLabel < Asm::LabelObject
|
||
|
def initialize(name)
|
||
|
@name = name
|
||
|
extern!
|
||
|
end
|
||
|
attr_reader :name
|
||
|
end
|