llvm/lib/Target/Lanai/MCTargetDesc
Alex Bradbury ff1254b6f8 Add MCContext argument to MCAsmBackend::applyFixup for error reporting
A number of backends (AArch64, MIPS, ARM) have been using
MCContext::reportError to report issues such as out-of-range fixup values in
their TgtAsmBackend. This is great, but because MCContext couldn't easily be
threaded through to the adjustFixupValue helper function from its usual
callsite (applyFixup), these backends ended up adding an MCContext* argument
and adding another call to applyFixup to processFixupValue. Adding an
MCContext parameter to applyFixup makes this unnecessary, and even better -
applyFixup can take a reference to MCContext rather than a potentially null
pointer.

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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299529 91177308-0d34-0410-b5e6-96231b3b80d8
2017-04-05 10:16:14 +00:00
..
CMakeLists.txt Change the target's name, s/LanaiMCTargetDesc/LanaiDesc/g. 2016-08-23 10:43:01 +00:00
LanaiAsmBackend.cpp Add MCContext argument to MCAsmBackend::applyFixup for error reporting 2017-04-05 10:16:14 +00:00
LanaiBaseInfo.h
LanaiELFObjectWriter.cpp [AArch64, Lanai] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-06 00:30:53 +00:00
LanaiFixupKinds.h
LanaiMCAsmInfo.cpp [lanai] Small cleanup: remove/comment out unused args 2016-07-15 22:38:32 +00:00
LanaiMCAsmInfo.h
LanaiMCCodeEmitter.cpp clean Lanai namespace 2017-03-16 23:22:10 +00:00
LanaiMCExpr.cpp
LanaiMCExpr.h [lanai] Small cleanup: remove/comment out unused args 2016-07-15 22:38:32 +00:00
LanaiMCTargetDesc.cpp [AArch64, Lanai] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-06 00:30:53 +00:00
LanaiMCTargetDesc.h Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
LLVMBuild.txt [Lanai] Rename LanaiInstPrinter library to LanaiAsmPrinter 2017-01-24 17:27:01 +00:00