dropped extern functionality for now

This commit is contained in:
Torsten Ruger 2014-04-21 21:02:11 +03:00
parent 5237ff9e40
commit 7478b65fb0
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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