Add MCContext argument to MCAsmBackend::applyFixup for error reporting
Audit RequiredrL299529

Description

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

Details

Auditors
grosbach
Committed
asbApr 5 2017, 3:16 AM
Differential Revision
D30264: Add MCContext argument to MCAsmBackend::applyFixup for error reporting
Parents
rL299528: [ELF] - Define __bss_start symbol.
Branches
Unknown
Tags
Unknown