mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
c86f6679fb
Handle the case when the symbol is private. Private symbols are not in the COFF object file symbol table, so they aren't inserted into SymbolMap. We can't look up the section of the symbol that way. Instead, get the MCSection from the MCSymbol and map that to the object file section. Print a better error message when the symbol has no section, like when the symbol is undefined. Fixes PR38607 llvm-svn: 339942
9 lines
256 B
ArmAsm
9 lines
256 B
ArmAsm
# RUN: not llvm-mc %s -filetype=obj -triple=x86_64-windows-msvc -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
# CHECK: cannot make section assocSec associative with sectionless symbol undef
|
|
|
|
.section assocSec,"dr",associative,undef
|
|
.p2align 3
|
|
.quad my_initializer
|
|
|