mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
de676f52d6
Summary: When we have a long name for the undefined symbol, we would hit this assertion: Assertion failed: I != StringIndexMap.end() && "String is not in table!" This patch addresses that. Reviewed by: DiggerLin, daltenty Differential Revision: https://reviews.llvm.org/D74924
50 lines
1.5 KiB
LLVM
50 lines
1.5 KiB
LLVM
; RUN: llc -mtriple powerpc-ibm-aix-xcoff -filetype=obj -o %t.o < %s
|
|
; RUN: llvm-readobj --symbols %t.o | FileCheck %s
|
|
|
|
define void @bar() {
|
|
entry:
|
|
call void bitcast (void (...)* @foo to void ()*)()
|
|
call void bitcast (void (...)* @long_undef_name to void ()*)()
|
|
ret void
|
|
}
|
|
|
|
declare void @foo(...)
|
|
declare void @long_undef_name(...)
|
|
|
|
;CHECK: Symbol {
|
|
;CHECK: Name: .foo
|
|
;CHECK-NEXT: Value (RelocatableAddress): 0x0
|
|
;CHECK-NEXT: Section: N_UNDEF
|
|
;CHECK-NEXT: Type: 0x0
|
|
;CHECK-NEXT: StorageClass: C_EXT (0x2)
|
|
;CHECK-NEXT: NumberOfAuxEntries: 1
|
|
;CHECK-NEXT: CSECT Auxiliary Entry {
|
|
;CHECK: SectionLen: 0
|
|
;CHECK-NEXT: ParameterHashIndex: 0x0
|
|
;CHECK-NEXT: TypeChkSectNum: 0x0
|
|
;CHECK-NEXT: SymbolAlignmentLog2: 0
|
|
;CHECK-NEXT: SymbolType: XTY_ER (0x0)
|
|
;CHECK-NEXT: StorageMappingClass: XMC_PR (0x0)
|
|
;CHECK-NEXT: StabInfoIndex: 0x0
|
|
;CHECK-NEXT: StabSectNum: 0x0
|
|
;CHECK-NEXT: }
|
|
;CHECK-NEXT: }
|
|
;CHECK: Symbol {
|
|
;CHECK: Name: .long_undef_name
|
|
;CHECK-NEXT: Value (RelocatableAddress): 0x0
|
|
;CHECK-NEXT: Section: N_UNDEF
|
|
;CHECK-NEXT: Type: 0x0
|
|
;CHECK-NEXT: StorageClass: C_EXT (0x2)
|
|
;CHECK-NEXT: NumberOfAuxEntries: 1
|
|
;CHECK-NEXT: CSECT Auxiliary Entry {
|
|
;CHECK: SectionLen: 0
|
|
;CHECK-NEXT: ParameterHashIndex: 0x0
|
|
;CHECK-NEXT: TypeChkSectNum: 0x0
|
|
;CHECK-NEXT: SymbolAlignmentLog2: 0
|
|
;CHECK-NEXT: SymbolType: XTY_ER (0x0)
|
|
;CHECK-NEXT: StorageMappingClass: XMC_PR (0x0)
|
|
;CHECK-NEXT: StabInfoIndex: 0x0
|
|
;CHECK-NEXT: StabSectNum: 0x0
|
|
;CHECK-NEXT: }
|
|
;CHECK-NEXT: }
|