grimar added a comment. btw, instead of Optional<> it could just return RelType R_*_NONE I think, which is always zero for all targets it seems. I am not sure that would make more sense though. https://reviews.llvm.org/D45248