Previously, we were finding the /first/ dot in a name, and stripping everything after that. If that's really what someone wants to do, they can use -module-name explicitly. Swift SVN r7374