llvm-project/llvm/test/MC
Francis Visoiu Mistrih 5b5ee61b5f [MachO][TLOF] Use hasLocalLinkage to determine if indirect symbol is local
Local symbols in the indirect symbol table contain the value
`INDIRECT_SYMBOL_LOCAL` and the corresponding __pointers entry must
contain the address of the target.

In r349060, I added support for local symbols in the indirect symbol
table, which was checking if the symbol `isDefined` && `!isExternal` to
determine if the symbol is local or not.

It turns out that `isDefined` will return false if the user of the
symbol comes before its definition, and we'll again generate .long 0
which will be the symbol at the adress 0x0.

Instead of doing that, use GlobalValue::hasLocalLinkage() to check if
the symbol is local.

Differential Revision: https://reviews.llvm.org/D66563

llvm-svn: 369671
2019-08-22 16:59:00 +00:00
..
AArch64 [AArch64] Update MTE system register encodings 2019-08-21 09:09:56 +00:00
AMDGPU [AMDGPU][MC][GFX10] Enabled GFX10 assembly with arbitrary wavesize assumed by the code 2019-07-24 16:50:17 +00:00
ARM [MC] Delete unnecessary diagnostic: "No relocation available to represent this relative expression" 2019-08-19 07:59:35 +00:00
AVR [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
AsmParser Fix a crash with assembler source and -g. 2019-06-21 13:10:19 +00:00
BPF [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
COFF Changing representation of .cv_def_range directives in Codeview debug info assembly format for better readability 2019-08-05 14:16:58 +00:00
Disassembler [AArch64] Update MTE system register encodings 2019-08-21 09:09:56 +00:00
ELF [MC] Delete unnecessary diagnostic: "No relocation available to represent this relative expression" 2019-08-19 07:59:35 +00:00
Hexagon [llvm-mc] Add reportWarning() to MCContext 2019-08-08 19:13:23 +00:00
Lanai [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
MSP430 [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
MachO [MachO][TLOF] Use hasLocalLinkage to determine if indirect symbol is local 2019-08-22 16:59:00 +00:00
Mips [Mips] Instruction `sc` now accepts symbol as an argument 2019-08-07 12:21:26 +00:00
PowerPC [MC] Don't emit .symver redirected symbols to the symbol table 2019-08-19 06:17:30 +00:00
RISCV [RISCV] Add support for RVC HINT instructions 2019-08-21 14:00:58 +00:00
Sparc [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
SystemZ [SystemZ] Add support for new cpu architecture - arch13 2019-07-12 18:13:16 +00:00
WebAssembly [WebAssembly][MC] Simplify WasmObjectWriter::recordRelocation. NFC. 2019-08-20 00:33:50 +00:00
X86 [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00