Remove some code that was no longer needed. The first FIXME is
stale since we long ago started using the index to drive importing,
rather than doing force importing based on linkage type. And
now with r309278, we no longer import any aliases.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Is it worth having the DEBUG output if no aliases are ever imported?
Could potentially rewrite this whole loop as:
assert(none_of(SrcModule.aliases(), [&](GlobalAlias &GA) { if (!GA.hasName()) return false; return ImportGUIDs.count(GA.getGUID()); }) && "Unexpected alias in import list");
Dunno if that comes out more legible, though.
Comment Actions
I think it is worthwhile emitting this since we also emit the functions/vars that are not imported.
Could potentially rewrite this whole loop as:
assert(none_of(SrcModule.aliases(), [&](GlobalAlias &GA) { if (!GA.hasName()) return false; return ImportGUIDs.count(GA.getGUID()); }) && "Unexpected alias in import list");Dunno if that comes out more legible, though.
I was trying to keep it somewhat symmetric with the earlier code handling functions and variables. I'm hoping to start looking at importing these as a copy, which would mean this would go back to a loop anyway. I will change it if you feel strongly that this is better though.