mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	This will allow the "-s" flag to implemented in the future as it is in darwin’s nm(1) to list symbols only in the specified section. Given a LGTM by Shankar Easwaran who originally implemented the support for lvm-nm’s -print-armap and archive map symbols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212576 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			21 lines
		
	
	
		
			552 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			552 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llvm-as %s -o=%t1
 | |
| ; RUN: rm -f %t2
 | |
| ; RUN: llvm-ar rcs %t2 %t1
 | |
| ; RUN: llvm-nm -M %t2 | FileCheck %s
 | |
| 
 | |
| target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 | |
| target triple = "x86_64-unknown-linux-gnu"
 | |
| 
 | |
| module asm ".global global_asm_sym"
 | |
| module asm "global_asm_sym:"
 | |
| module asm "local_asm_sym:"
 | |
| module asm ".long undef_asm_sym"
 | |
| 
 | |
| ; CHECK: Archive map
 | |
| ; CHECK-NEXT: global_asm_sym in archive-ir-asm.ll
 | |
| 
 | |
| ; CHECK: archive-ir-asm.ll
 | |
| ; CHECK-NEXT:         T global_asm_sym
 | |
| ; CHECK-NEXT:         t local_asm_sym
 | |
| ; CHECK-NEXT:         U undef_asm_sym
 |