Closed
Description
Since CL 391014 (a987aaf), cmd/compile now requires the -p flag. There's a lot of code to handle code paths that aren't needed any more.
At least a few cleanups I can think of:
- Initialize types.LocalPkg with base.Ctxt.Pkgpath instead of
""
. - Change types.TypeHash to use t.LinkString instead of fmtTypeIDHash.
- Get rid of "package height" and just sort method sets on identifier and package path. (We can just write package height as 0 in the iexport data format; public importers ignore it anyway.)
- Change cmd/link (or cmd/internal/obj?) to Fatalf if it sees
"".
in any linker symbols.
Perhaps other opportunities.
The iexport file format uses ""
for the current package too, which probably needs to be retained for compatibility with legacy importers.