mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 14:12:32 +01:00 
			
		
		
		
	 a23fa2e81e
			
		
	
	
		a23fa2e81e
		
	
	
	
	
		
			
			from x86/aasmcpu to aasmtai and (new) aasmsym, so that when they're
    finished they're available for all targets
  * added dummy implementation of tai_cpu_abstract.pass1 and pass2 so there
    are no more hundreds of warnings on non-x86 about constructing taicpu
    instances with abstract methods
git-svn-id: trunk@5787 -
		
	
			
		
			
				
	
	
		
			71 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
| {
 | |
|     Copyright (c) 1998-2007 by Florian Klaempfl and Peter Vreman
 | |
| 
 | |
|     Contains abstract assembler instructions for all processor
 | |
|     types, including routines which depend on the symbol table.
 | |
|     These cannot be in aasmtai, because the symbol table units
 | |
|     depend on that one.
 | |
| 
 | |
|     * Portions of this code was inspired by the NASM sources
 | |
|       The Netwide Assembler is Copyright (c) 1996 Simon Tatham and
 | |
|       Julian Hall. All rights reserved.
 | |
| 
 | |
|     This program is free software; you can redistribute it and/or modify
 | |
|     it under the terms of the GNU General Public License as published by
 | |
|     the Free Software Foundation; either version 2 of the License, or
 | |
|     (at your option) any later version.
 | |
| 
 | |
|     This program is distributed in the hope that it will be useful,
 | |
|     but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
|     GNU General Public License for more details.
 | |
| 
 | |
|     You should have received a copy of the GNU General Public License
 | |
|     along with this program; if not, write to the Free Software
 | |
|     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 | |
| 
 | |
|  ****************************************************************************
 | |
| }
 | |
| unit aasmsym;
 | |
| 
 | |
| {$i fpcdefs.inc}
 | |
| 
 | |
| interface
 | |
| 
 | |
|     uses
 | |
|       aasmtai;
 | |
| 
 | |
|     type
 | |
|       tai_cpu_abstract_sym = class(tai_cpu_abstract)
 | |
|       protected
 | |
|          procedure ppubuildderefimploper(var o:toper);override;
 | |
|          procedure ppuderefoper(var o:toper);override;
 | |
|       end;
 | |
| 
 | |
| implementation
 | |
| 
 | |
|     uses
 | |
|       symsym;
 | |
| 
 | |
| 
 | |
|     procedure tai_cpu_abstract_sym.ppubuildderefimploper(var o:toper);
 | |
|       begin
 | |
|         case o.typ of
 | |
|           top_local :
 | |
|             o.localoper^.localsymderef.build(tlocalvarsym(o.localoper^.localsym));
 | |
|         end;
 | |
|       end;
 | |
| 
 | |
| 
 | |
|     procedure tai_cpu_abstract_sym.ppuderefoper(var o:toper);
 | |
|       begin
 | |
|         case o.typ of
 | |
|           top_ref :
 | |
|             begin
 | |
|             end;
 | |
|           top_local :
 | |
|             o.localoper^.localsym:=tlocalvarsym(o.localoper^.localsymderef.resolve);
 | |
|         end;
 | |
|       end;
 | |
| 
 | |
| end. |