llvm-project/llvm/lib/Target/X86/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 Delete MCRelocationInfo::createExprForRelocation. 2016-01-15 02:24:12 +00:00
LLVMBuild.txt
X86AsmBackend.cpp Add MCContext argument to MCAsmBackend::applyFixup for error reporting 2017-04-05 10:16:14 +00:00
X86BaseInfo.h X86: Produce @ABS8 symbol modifiers for absolute symbols in range [0,128). 2017-02-02 00:32:03 +00:00
X86ELFObjectWriter.cpp [X86] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-02 22:55:55 +00:00
X86FixupKinds.h Add initial support for R_386_GOT32X. 2016-07-06 21:19:11 +00:00
X86MCAsmInfo.cpp Turn cl::values() (for enum) from a vararg function to using C++ variadic template 2016-10-08 19:41:06 +00:00
X86MCAsmInfo.h
X86MCCodeEmitter.cpp [X86] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-02 22:55:55 +00:00
X86MCTargetDesc.cpp Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
X86MCTargetDesc.h Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
X86MachObjectWriter.cpp Add initial support for R_386_GOT32X. 2016-07-06 21:19:11 +00:00
X86WinCOFFObjectWriter.cpp [X86] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-02 22:55:55 +00:00
X86WinCOFFStreamer.cpp Revert r283690, "MC: Remove unused entities." 2016-10-10 22:49:37 +00:00