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 class Asm::Arm::CodeGenerator
def initialize def initialize
@asm = Asm::Assembler.new @asm = Asm::Assembler.new
@externs = [] # @externs = []
end end
def data(str) def data(str)
@ -79,6 +79,7 @@ class Asm::Arm::CodeGenerator
lbl lbl
end end
#externs dropped for now
def extern(sym) def extern(sym)
if (lbl = @externs.find { |extern| extern.name == sym }) if (lbl = @externs.find { |extern| extern.name == sym })
lbl lbl

View File

@ -24,7 +24,8 @@ class TestSmallProg < MiniTest::Test
write( 5 , "small" ) write( 5 , "small" )
end end
def test_extern #test dropped along with functionality, didn't work and not needed (yet?) TODO
def no_test_extern
@generator.instance_eval { @generator.instance_eval {
mov r0 , 50 #1 mov r0 , 50 #1
push lr #2 push lr #2