llvm-project/llvm/lib/Target/AArch64/MCTargetDesc
Kevin Enderby 96918bc406 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
..
AArch64AsmBackend.cpp Completely rewrite ELFObjectWriter::RecordRelocation. 2014-03-29 06:26:49 +00:00
AArch64ELFObjectWriter.cpp Remove another unused argument. 2014-03-27 20:49:35 +00:00
AArch64ELFStreamer.cpp Fix the assembler to print a better relocatable expression error 2014-04-22 17:27:29 +00:00
AArch64ELFStreamer.h
AArch64FixupKinds.h AArch64: add block comments where missing 2013-02-14 16:17:01 +00:00
AArch64MCAsmInfo.cpp [AArch64] Remove .data_region directive from AArch64. 2014-03-21 02:12:48 +00:00
AArch64MCAsmInfo.h Add AArch64 big endian Target (aarch64_be) 2014-02-24 11:34:50 +00:00
AArch64MCCodeEmitter.cpp [Modules] Fix potential ODR violations by sinking the DEBUG_TYPE 2014-04-22 02:41:26 +00:00
AArch64MCExpr.cpp [Modules] Fix potential ODR violations by sinking the DEBUG_TYPE 2014-04-22 02:41:26 +00:00
AArch64MCExpr.h AArch64: implement large code model access to global variables. 2013-05-04 16:53:46 +00:00
AArch64MCTargetDesc.cpp [cleanup] Lift using directives, DEBUG_TYPE definitions, and even some 2014-04-22 02:03:14 +00:00
AArch64MCTargetDesc.h Add AArch64 big endian Target (aarch64_be) 2014-02-24 11:34:50 +00:00
CMakeLists.txt [CMake] Let add_public_tablegen_target responsible to provide dependency to CommonTableGen. 2013-11-28 17:04:04 +00:00
LLVMBuild.txt Remove cyclic dependency in AArch64 libraries 2013-02-05 13:24:47 +00:00
Makefile