llvm-project/llvm/lib/Target/ARM/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
..
ARMAddressingModes.h Replace Count{Leading,Trailing}Zeros_{32,64} with count{Leading,Trailing}Zeros. 2013-05-24 22:23:49 +00:00
ARMArchName.def Recognize armv7a and friends as aliases for armv7-a etc. for the purpose 2013-12-26 11:50:28 +00:00
ARMArchName.h Recognize armv7a and friends as aliases for armv7-a etc. for the purpose 2013-12-26 11:50:28 +00:00
ARMAsmBackend.cpp ARM: rename ARMle/ARMbe with ARMLE/ARMBE, and Thumble/Thumbbe with ThumbLE/ThumbBE 2014-04-01 15:19:30 +00:00
ARMBaseInfo.h Fix known typos 2014-01-24 17:20:08 +00:00
ARMELFObjectWriter.cpp Completely rewrite ELFObjectWriter::RecordRelocation. 2014-03-29 06:26:49 +00:00
ARMELFStreamer.cpp Fix the assembler to print a better relocatable expression error 2014-04-22 17:27:29 +00:00
ARMFixupKinds.h Completely rewrite ELFObjectWriter::RecordRelocation. 2014-03-29 06:26:49 +00:00
ARMMCAsmInfo.cpp ARM: update subtarget information for Windows on ARM 2014-04-02 20:32:05 +00:00
ARMMCAsmInfo.h ARM: update subtarget information for Windows on ARM 2014-04-02 20:32:05 +00:00
ARMMCCodeEmitter.cpp [Modules] Fix potential ODR violations by sinking the DEBUG_TYPE 2014-04-22 02:41:26 +00:00
ARMMCExpr.cpp [Modules] Fix potential ODR violations by sinking the DEBUG_TYPE 2014-04-22 02:41:26 +00:00
ARMMCExpr.h [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-10 02:09:33 +00:00
ARMMCTargetDesc.cpp ARM MC: 80 column 2014-04-09 06:18:26 +00:00
ARMMCTargetDesc.h ARM: rename ARMle/ARMbe with ARMLE/ARMBE, and Thumble/Thumbbe with ThumbLE/ThumbBE 2014-04-01 15:19:30 +00:00
ARMMachORelocationInfo.cpp [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-10 03:19:03 +00:00
ARMMachObjectWriter.cpp Completely rewrite ELFObjectWriter::RecordRelocation. 2014-03-29 06:26:49 +00:00
ARMTargetStreamer.cpp [cleanup] Re-sort all the includes with utils/sort_includes.py. 2014-03-04 10:07:28 +00:00
ARMUnwindOpAsm.cpp ARM IAS: support .personalityindex 2014-01-21 02:33:02 +00:00
ARMUnwindOpAsm.h Prune includes in ARM target. 2014-03-22 23:51:00 +00:00
CMakeLists.txt ARM MC: sort source files in CMakeLists 2014-04-09 06:18:23 +00:00
LLVMBuild.txt
Makefile