llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc
Alex Bradbury 866113c2ea 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

llvm-svn: 299529
2017-04-05 10:16:14 +00:00
..
CMakeLists.txt
LLVMBuild.txt
PPCAsmBackend.cpp Add MCContext argument to MCAsmBackend::applyFixup for error reporting 2017-04-05 10:16:14 +00:00
PPCELFObjectWriter.cpp
PPCFixupKinds.h
PPCMCAsmInfo.cpp
PPCMCAsmInfo.h
PPCMCCodeEmitter.cpp [PowerPC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-13 00:58:58 +00:00
PPCMCExpr.cpp
PPCMCExpr.h
PPCMCTargetDesc.cpp [PowerPC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-13 00:58:58 +00:00
PPCMCTargetDesc.h [PowerPC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-13 00:58:58 +00:00
PPCMachObjectWriter.cpp
PPCPredicates.cpp
PPCPredicates.h