mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-15 10:39:47 +00:00
![Rafael Espindola](/assets/img/avatar_default.png)
Before when deciding if we needed a relocation in A-B, we wore only checking if A was weak. This fixes the asymmetry. The "InSet" argument should probably be renamed to "ForValue", since InSet is very MachO specific, but doing so in this patch would make it hard to read. This fixes PR22815. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234165 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
202 B
ArmAsm
11 lines
202 B
ArmAsm
// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t 2>&1 | FileCheck %s
|
|
|
|
// CHECK: error: Cannot represent a subtraction with a weak symbol
|
|
|
|
.weak f
|
|
f:
|
|
nop
|
|
g:
|
|
nop
|
|
.quad g - f
|