From 7478b65fb0d6122eafddbb183d51615de1cf5886 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Mon, 21 Apr 2014 21:02:11 +0300 Subject: [PATCH] dropped extern functionality for now --- lib/asm/arm/code_generator.rb | 3 ++- test/small_program_test.rb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/asm/arm/code_generator.rb b/lib/asm/arm/code_generator.rb index 12ef5f07..66ea9750 100644 --- a/lib/asm/arm/code_generator.rb +++ b/lib/asm/arm/code_generator.rb @@ -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 diff --git a/test/small_program_test.rb b/test/small_program_test.rb index 3fd302bf..d399854a 100644 --- a/test/small_program_test.rb +++ b/test/small_program_test.rb @@ -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