Our fixup application code (inside lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp) should be moved into a public header file include/llvm/Support/AVR.h and refactored so that the functions are named after the revocations they correspond to instead of the fixups.
If this is done, then LLD can then #include this file, and the bulk of AVR LLD support (which is the relocation application pass) will not need to be needlessly duplicated.
Our fixup application code (inside
lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
) should be moved into a public header fileinclude/llvm/Support/AVR.h
and refactored so that the functions are named after the revocations they correspond to instead of the fixups.If this is done, then LLD can then
#include
this file, and the bulk of AVR LLD support (which is the relocation application pass) will not need to be needlessly duplicated.