[Hexagon] s/Fatal/ReportErrors/

Rename argument from 'Fatal' => 'ReportErrors'.  HexagonShuffler refers to
this arg as 'ReportErrors' and calling it 'Fatal' in HexagonMCShuffler is
misleading and inconsistent.
This commit is contained in:
Brian Cain 2018-04-25 23:10:26 -05:00 committed by Krzysztof Parzyszek
parent 5001c7cc9d
commit 9af53d2f0c
2 changed files with 10 additions and 9 deletions

View File

@ -100,10 +100,10 @@ bool HexagonMCShuffler::reshuffleTo(MCInst &MCB) {
return false;
}
bool llvm::HexagonMCShuffle(MCContext &Context, bool Fatal,
bool llvm::HexagonMCShuffle(MCContext &Context, bool ReportErrors,
MCInstrInfo const &MCII, MCSubtargetInfo const &STI,
MCInst &MCB) {
HexagonMCShuffler MCS(Context, Fatal, MCII, STI, MCB);
HexagonMCShuffler MCS(Context, ReportErrors, MCII, STI, MCB);
if (DisableShuffle)
// Ignore if user chose so.

View File

@ -28,16 +28,17 @@ class MCSubtargetInfo;
// Insn bundle shuffler.
class HexagonMCShuffler : public HexagonShuffler {
public:
HexagonMCShuffler(MCContext &Context, bool Fatal, MCInstrInfo const &MCII,
MCSubtargetInfo const &STI, MCInst &MCB)
: HexagonShuffler(Context, Fatal, MCII, STI) {
HexagonMCShuffler(MCContext &Context, bool ReportErrors,
MCInstrInfo const &MCII, MCSubtargetInfo const &STI,
MCInst &MCB)
: HexagonShuffler(Context, ReportErrors, MCII, STI) {
init(MCB);
}
HexagonMCShuffler(MCContext &Context, bool Fatal, MCInstrInfo const &MCII,
MCSubtargetInfo const &STI, MCInst &MCB,
MCInst const &AddMI, bool InsertAtFront)
: HexagonShuffler(Context, Fatal, MCII, STI) {
HexagonMCShuffler(MCContext &Context, bool ReportErrors,
MCInstrInfo const &MCII, MCSubtargetInfo const &STI,
MCInst &MCB, MCInst const &AddMI, bool InsertAtFront)
: HexagonShuffler(Context, ReportErrors, MCII, STI) {
init(MCB, AddMI, InsertAtFront);
}