llvm/test/MC/MachO
Kevin Enderby 29c96f133e 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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206906 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-22 17:27:29 +00:00
..
ARM ARM: consolidate MachO checks for ARM asm parser 2014-04-05 22:09:51 +00:00
ARM64 ARM64: initial backend import 2014-03-29 10:18:08 +00:00
absolute.s
absolutize.s
bad-darwin-x86_64-32-bit-abs-addr.s
bad-darwin-x86_64-diff-relocs.s
bad-darwin-x86_64-reloc-expr.s Fix the assembler to print a better relocatable expression error 2014-04-22 17:27:29 +00:00
bad-dollar.s
bad-indirect-symbols.s
bad-macro.s
bss.s
comm-1.s
darwin-complex-difference.s
darwin-x86_64-diff-reloc-assign-2.s
darwin-x86_64-diff-reloc-assign.s
darwin-x86_64-diff-relocs.s
darwin-x86_64-nobase-relocs.s
darwin-x86_64-reloc-offsets.s
darwin-x86_64-reloc.s
data.s
debug_frame.s [MC] Emit an error if cfi_startproc is used before a symbol is defined. 2014-04-15 01:17:45 +00:00
diff-with-two-sections.s
direction_labels.s
eh_symbol.s Convert CodeGen test into a more specific MC test. 2014-03-20 22:05:59 +00:00
eh-frame-reloc.s Convert another CodeGen test into a MC test. 2014-03-20 23:35:00 +00:00
eh-symbols.s Move codegen test over to MC. 2014-03-21 17:55:34 +00:00
empty-dwarf-lines.s
file.s
gen-dwarf-cpp.s llvm/test/MC/MachO/gen-dwarf-cpp.s: Relax an expression to match DOS pat. 2014-03-17 05:31:54 +00:00
gen-dwarf-macro-cpp.s
gen-dwarf-producer.s
gen-dwarf.s
i386-large-relocations.s
indirect-symbols.s
jcc.s
lcomm-attributes.s
linker-option-1.s
linker-option-2.s
linker-options.ll
lit.local.cfg
loc.s
osx-version-min-load-command.s Darwin: Add assembler directives to create version-min load commands. 2014-03-18 22:09:05 +00:00
pcrel-to-other-section.s
previous.s
pushsection.s
relax-jumps.s
relax-recompute-align.s
reloc-diff.s
reloc-pcrel-offset.s
reloc-pcrel.s
reloc.s
section-align-1.s
section-align-2.s
section-attributes.s
section-flags.s
string-table.s
symbol-diff.s
symbol-flags.s
symbol-indirect.s
symbols-1.s
tbss.s
tdata.s
temp-labels.s
thread_init_func.s
tls.s
tlv-bss.ll
tlv-reloc.s
tlv.s
values.s
variable-errors.s
variable-exprs.s
weakdef.s
x86_32-optimal_nop.s
x86_32-scattered-reloc-fallback.s
x86_32-sections.s
x86_32-symbols.s
x86_64-reloc-arithmetic.s
x86_64-sections.s
x86_64-symbols.s
x86-data-in-code.ll
zerofill-1.s
zerofill-2.s
zerofill-3.s
zerofill-4.s
zerofill-5.s
zerofill-sect-align.s