Allow the attributor to delete functions only if requested Differential Revision: https://reviews.llvm.org/D97238