CGDebugInfo: Hoist string allocation in a helper function. No functionality change.