The value of dso_local can be computed from just IR properties and global information (object file type, command line options, etc).
With this patch we no longer pass in the Decl. It was almost unused and making it fully unused guarantees that dso_local is consistent with the rest of the IR.