mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 16:39:24 +01:00 
			
		
		
		
	* allow assembler labels to be used in typed consts
git-svn-id: trunk@3590 -
This commit is contained in:
		
							parent
							
								
									307315cef6
								
							
						
					
					
						commit
						627c7f2ae0
					
				@ -63,6 +63,7 @@ interface
 | 
				
			|||||||
          constructor create(const n : string);
 | 
					          constructor create(const n : string);
 | 
				
			||||||
          constructor ppuload(ppufile:tcompilerppufile);
 | 
					          constructor ppuload(ppufile:tcompilerppufile);
 | 
				
			||||||
          procedure ppuwrite(ppufile:tcompilerppufile);override;
 | 
					          procedure ppuwrite(ppufile:tcompilerppufile);override;
 | 
				
			||||||
 | 
					          function mangledname:string;
 | 
				
			||||||
       end;
 | 
					       end;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
       tunitsym = class(Tstoredsym)
 | 
					       tunitsym = class(Tstoredsym)
 | 
				
			||||||
@ -474,6 +475,16 @@ implementation
 | 
				
			|||||||
      end;
 | 
					      end;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   function tlabelsym.mangledname:string;
 | 
				
			||||||
 | 
					     begin
 | 
				
			||||||
 | 
					       if not(defined) then
 | 
				
			||||||
 | 
					         begin
 | 
				
			||||||
 | 
					           defined:=true;
 | 
				
			||||||
 | 
					           current_asmdata.getjumplabel(asmblocklabel);
 | 
				
			||||||
 | 
					         end;
 | 
				
			||||||
 | 
					       result:=asmblocklabel.getname;
 | 
				
			||||||
 | 
					     end;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{****************************************************************************
 | 
					{****************************************************************************
 | 
				
			||||||
                                  TUNITSYM
 | 
					                                  TUNITSYM
 | 
				
			||||||
****************************************************************************}
 | 
					****************************************************************************}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user