The genomic determinants of adaptive evolution in a fungal pathogen