Copy link
@MaskRay

MaskRay Oct 2, 2024

Author Member

Agree. If we ever change ctx from a global variable to a local variable, get*TargetInfo will noy be able to use a function-local static. Perhaps we can create something like unique_ptr<TargetInfo> ctx::targetInfo.

At any rate, the signature change in this commit is useful and should be retained.