Turn AMDGPUSubtarget::getDataLayout into a static function.

No functionality change.