1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00
llvm-mirror/test/MC
Oliver Stannard f0a90b93e6 [Assembler] Better error messages for .org directive
Currently, the error messages we emit for the .org directive when the
expression is not absolute or is out of range do not include the line
number of the directive, so it can be hard to track down the problem if
a file contains many .org directives.

This patch stores the source location in the MCOrgFragment, so that it
can be used for diagnostics emitted during layout.

Since layout is an iterative process, and the errors are detected during
each iteration, it would have been possible for errors to be reported
multiple times. To prevent this, I've made the assembler bail out after
each iteration if any errors have been reported. This will still allow
multiple unrelated errors to be reported in the common case where they
are all detected in the first round of layout.

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

llvm-svn: 289643
2016-12-14 10:43:58 +00:00
..
AArch64 [Assembler] Better error messages for .org directive 2016-12-14 10:43:58 +00:00
AMDGPU AMDGPU: Fix handling of 16-bit immediates 2016-12-10 00:39:12 +00:00
ARM [Assembler] Better error messages for .org directive 2016-12-14 10:43:58 +00:00
AsmParser [Assembler] Better error messages for .org directive 2016-12-14 10:43:58 +00:00
AVR [AVR] Add all of the machine code test suite 2016-11-09 23:46:25 +00:00
COFF Emit S_COMPILE3 record once per TU rather than once per function 2016-11-02 21:30:35 +00:00
Disassembler AMDGPU: Fix handling of 16-bit immediates 2016-12-10 00:39:12 +00:00
ELF Reverting back r285355: "Update .debug_line section version information to match DWARF version", while I'm investigating a test failure. 2016-10-27 23:20:19 +00:00
Hexagon [Hexagon] Fix disassembler crash after r279255 2016-09-09 21:45:00 +00:00
Lanai [lanai] Add more tests for assembly of conditional ALU ops 2016-07-11 17:58:16 +00:00
MachO Reverting back r285355: "Update .debug_line section version information to match DWARF version", while I'm investigating a test failure. 2016-10-27 23:20:19 +00:00
Markup
Mips [mips] For PIC code convert unconditional jump to unconditional branch 2016-12-12 17:40:26 +00:00
PowerPC [PPC] Slightly Improve Assembly Parsing errors and add EOL comment 2016-12-05 14:11:03 +00:00
Sparc Don't pass a Reloc::Model to MC. 2016-05-18 11:58:50 +00:00
SystemZ [SystemZ] Support remaining atomic instructions 2016-12-02 18:24:16 +00:00
X86 [LMT] Restrict nop length to one 2016-12-01 15:19:10 +00:00