dropped extern functionality for now
This commit is contained in:
parent
5237ff9e40
commit
7478b65fb0
@ -9,7 +9,7 @@ require "asm/data_object"
|
||||
class Asm::Arm::CodeGenerator
|
||||
def initialize
|
||||
@asm = Asm::Assembler.new
|
||||
@externs = []
|
||||
# @externs = []
|
||||
end
|
||||
|
||||
def data(str)
|
||||
@ -79,6 +79,7 @@ class Asm::Arm::CodeGenerator
|
||||
lbl
|
||||
end
|
||||
|
||||
#externs dropped for now
|
||||
def extern(sym)
|
||||
if (lbl = @externs.find { |extern| extern.name == sym })
|
||||
lbl
|
||||
|
@ -24,7 +24,8 @@ class TestSmallProg < MiniTest::Test
|
||||
write( 5 , "small" )
|
||||
end
|
||||
|
||||
def test_extern
|
||||
#test dropped along with functionality, didn't work and not needed (yet?) TODO
|
||||
def no_test_extern
|
||||
@generator.instance_eval {
|
||||
mov r0 , 50 #1
|
||||
push lr #2
|
||||
|
Loading…
Reference in New Issue
Block a user