]> granicus.if.org Git - llvm/commit
[MC] Delete unnecessary diagnostic: "No relocation available to represent this relati...
authorFangrui Song <maskray@google.com>
Mon, 19 Aug 2019 07:59:35 +0000 (07:59 +0000)
committerFangrui Song <maskray@google.com>
Mon, 19 Aug 2019 07:59:35 +0000 (07:59 +0000)
commitcba87f5bd585c38163c8b50a996024dcdc1c051c
tree215ea371da8288014282e404d0f7a99fbf119962
parentd62675ff0544a0c88929fc3265e290fc8dfcc7c1
[MC] Delete unnecessary diagnostic: "No relocation available to represent this relative expression"

Replace

- error: No relocation available to represent this relative expression

with

+ error: symbol 'undef' can not be undefined in a subtraction expression

or

+ error: Cannot represent a difference across sections

Keep !IsPcRel as an assertion after the two diagnostic checks are done.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369239 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
test/MC/AArch64/adr-diagnostics.s
test/MC/AArch64/error-location.s
test/MC/ARM/error-location.s
test/MC/ELF/bad-expr2.s