llvm-project/llvm/lib/Target/RISCV
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
..
MCTargetDesc Add MCContext argument to MCAsmBackend::applyFixup for error reporting 2017-04-05 10:16:14 +00:00
TargetInfo [RISCV] Add bare-bones RISC-V MCTargetDesc 2016-11-01 23:47:30 +00:00
CMakeLists.txt [RISCV] Add bare-bones RISC-V MCTargetDesc 2016-11-01 23:47:30 +00:00
LLVMBuild.txt [RISCV] Add bare-bones RISC-V MCTargetDesc 2016-11-01 23:47:30 +00:00
RISCV.td
RISCVInstrFormats.td [RISCV] Pseudo instructions are isCodeGenOnly, have blank asmstr 2017-02-14 05:17:23 +00:00
RISCVInstrInfo.td
RISCVRegisterInfo.td
RISCVTargetMachine.cpp [RISCV] Fix RV32 datalayout string and ensure initAsmInfo is called 2017-02-14 05:20:20 +00:00
RISCVTargetMachine.h [RISCV] Add bare-bones RISC-V MCTargetDesc 2016-11-01 23:47:30 +00:00