This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Make "Unkown Fixup" error msg more useful by giving Fixup Kind Name
Needs ReviewPublic

Authored by mgrang on Jul 16 2017, 6:40 PM.

Details

Summary

Added KindName to error messages.
Renamed getFixupKindContainereSizeInBytes to getFixupKindContainerSizeInBytes.
Ran clang-format on AArch64AsmBackend.cpp.

Diff Detail

Repository
rL LLVM

Event Timeline

mgrang created this revision.Jul 16 2017, 6:40 PM
t.p.northover edited edge metadata.Jul 16 2017, 7:04 PM
  1. Is a functional change since it switches an assertion to an actual error report. It would be better to use "Ctx.reportError", and since I'm assuming you have places where this makes a difference to you, tests would be useful if possible. (If it was only useful in debugging an already fixed problem and you now can't trigger them we'd probably let it squeeze by, but the lack of tests should be called out and justified).
  2. Trivial improvement, go ahead (you didn't need to post a patch for review for this kind of change). Shouldn't be part of the same commit as the others though.
  3. Generally not encouraged since it messes up "git blame" history.