llvm-mirror/test/MC
Kevin Enderby 223e66dc63 Fix the assembler to print a better relocatable expression error
diagnostic that includes location information.

Currently if one has this assembly:

	.quad (0x1234 + (4 * SOME_VALUE))

where SOME_VALUE is undefined ones gets the less than
useful error message with no location information:

% clang -c x.s
clang -cc1as: fatal error: error in backend: expected relocatable expression

With this fix one now gets a more useful error message
with location information:

% clang -c x.s 
x.s:5:8: error: expected relocatable expression
 .quad (0x1234 + (4 * SOME_VALUE))
       ^

To do this I plumbed the SMLoc through the MCObjectStreamer
EmitValue() and EmitValueImpl() interfaces so it could be used
when creating the MCFixup.

rdar://12391022

llvm-svn: 206906
2014-04-22 17:27:29 +00:00
..
AArch64 AArch64/ARM64: produce correct relocation for conditional branches. 2014-04-16 15:27:52 +00:00
ARM Change the ARM assembler to require a :lower16: or :upper16 on non-constant 2014-04-18 23:06:39 +00:00
ARM64 ARM64: Improve diagnostics for malformed reg+reg addressing mode. 2014-04-21 21:45:57 +00:00
AsmParser Patch by Ray Donnelly to print register names instead of numbers. 2014-04-19 05:40:09 +00:00
COFF COFF: fix an off by one error 2014-04-16 06:22:53 +00:00
Disassembler [X86] Add disassembler support for the 0x0f 0x7f form of movq %mm, %mm. 2014-04-17 06:33:45 +00:00
ELF Handle _GLOBAL_OFFSET_TABLE_ in 64 bit mode. 2014-04-21 21:15:45 +00:00
MachO Fix the assembler to print a better relocatable expression error 2014-04-22 17:27:29 +00:00
Markup MC: Simple example parser for MC assembly markup. 2012-10-31 23:24:13 +00:00
Mips [mips] Use TwoOperandAliasConstraint for shift instructions. 2014-04-16 16:28:59 +00:00
PowerPC [MC] Emit an error if cfi_startproc is used before a symbol is defined. 2014-04-15 01:17:45 +00:00
Sparc [Sparc] Add trap on integer condition codes (Ticc) instructions to Sparc backend. 2014-03-02 23:39:07 +00:00
SystemZ [SystemZ] Add support for z196 float<->unsigned conversions 2014-03-21 10:56:30 +00:00
X86 [AVX512] Implemented integer conversions up/down with masking. 2014-04-22 11:36:19 +00:00