Only strip the last extension from a file when inferring a module name.
Only strip the last extension from a file when inferring a module name.

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

LeoShimonaka/swift,amraboelela/swift,deyton/swift,huonw/swift,kusl/swift,ahoppen/swift,CodaFi/swift,tardieu/swift,alblue/swift,swiftix/swift.old,shahmishal/swift,airspeedswift/swift,atrick/swift,benlangmuir/swift,swiftix/swift,calebd/swift,jopamer/swift,MukeshKumarS/Swift,gmilos/swift,austinzheng/swift,manavgabhawala/swift,gregomni/swift,codestergit/swift,ken0nek/swift,jopamer/swift,swiftix/swift,therealbnut/swift,kusl/swift,danielmartin/swift,bitjammer/swift,nathawes/swift,karwa/swift,gmilos/swift,gmilos/swift,jtbandes/swift,practicalswift/swift,shajrawi/swift,arvedviehweger/swift,calebd/swift,tkremenek/swift,ken0nek/swift,austinzheng/swift,slavapestov/swift,codestergit/swift,JGiola/swift,CodaFi/swift,roambotics/swift,jtbandes/swift,aschwaighofer/swift,alblue/swift,zisko/swift,bitjammer/swift,stephentyrone/swift,tkremenek/swift,mightydeveloper/swift,swiftix/swift.old,kperryua/swift,danielmartin/swift,glessard/swift,nathawes/swift,russbishop/swift,Jnosh/swift,kperryua/swift,gottesmm/swift,tardieu/swift,calebd/swift,emilstahl/swift,deyton/swift,hooman/swift,felix91gr/swift,practicalswift/swift,devincoughlin/swift,SwiftAndroid/swift,calebd/swift,hughbe/swift,russbishop/swift,Jnosh/swift,benlangmuir/swift,gottesmm/swift,glessard/swift,emilstahl/swift,zisko/swift,devincoughlin/swift,kperryua/swift,sdulal/swift,emilstahl/swift,arvedviehweger/swift,danielmartin/swift,KrishMunot/swift,huonw/swift,JaSpa/swift,brentdax/swift,emilstahl/swift,SwiftAndroid/swift,calebd/swift,tinysun212/swift-windows,cbrentharris/swift,cbrentharris/swift,alblue/swift,MukeshKumarS/Swift,dduan/swift,tjw/swift,khizkhiz/swift,gribozavr/swift,amraboelela/swift,ben-ng/swift,felix91gr/swift,stephentyrone/swift,ahoppen/swift,karwa/swift,manavgabhawala/swift,austinzheng/swift,tardieu/swift,cbrentharris/swift,devincoughlin/swift,therealbnut/swift,ben-ng/swift,ken0nek/swift,xwu/swift,emilstahl/swift,deyton/swift,rudkx/swift,kstaring/swift,ben-ng/swift,russbishop/swift,amraboelela/swift,karwa/swift,JaSpa/swift,aschwaighofer/swift,devincoughlin/swift,xedin/swift,Ivacker/swift,hooman/swift,parkera/swift,frootloops/swift,jtbandes/swift,emilstahl/swift,xedin/swift,CodaFi/swift,modocache/swift,swiftix/swift.old,tinysun212/swift-windows,dreamsxin/swift,shajrawi/swift,calebd/swift,mightydeveloper/swift,benlangmuir/swift,gribozavr/swift,modocache/swift,gottesmm/swift,kusl/swift,CodaFi/swift,return/swift,IngmarStein/swift,rudkx/swift,mightydeveloper/swift,johnno1962d/swift,zisko/swift,swiftix/swift,danielmartin/swift,khizkhiz/swift,return/swift,aschwaighofer/swift,austinzheng/swift,aschwaighofer/swift,danielmartin/swift,KrishMunot/swift,nathawes/swift,xwu/swift,benlangmuir/swift,return/swift,Ivacker/swift,manavgabhawala/swift,shajrawi/swift,gribozavr/swift,adrfer/swift,tjw/swift,alblue/swift,shajrawi/swift,uasys/swift,tkremenek/swift,OscarSwanros/swift,therealbnut/swift,ben-ng/swift,dreamsxin/swift,airspeedswift/swift,roambotics/swift,milseman/swift,glessard/swift,modocache/swift,bitjammer/swift,hooman/swift,xedin/swift,huonw/swift,IngmarStein/swift,djwbrown/swift,gottesmm/swift,xedin/swift,swiftix/swift.old,JGiola/swift,lorentey/swift,ben-ng/swift,codestergit/swift,jmgc/swift,bitjammer/swift,roambotics/swift,cbrentharris/swift,jmgc/swift,jckarter/swift,sdulal/swift,KrishMunot/swift,xwu/swift,sschiau/swift,ahoppen/swift,shahmishal/swift,johnno1962d/swift,glessard/swift,cbrentharris/swift,SwiftAndroid/swift,gmilos/swift,apple/swift,russbishop/swift,khizkhiz/swift,jopamer/swift,nathawes/swift,huonw/swift,OscarSwanros/swift,milseman/swift,karwa/swift,stephentyrone/swift,atrick/swift,huonw/swift,apple/swift,parkera/swift,sschiau/swift,uasys/swift,ahoppen/swift,parkera/swift,codestergit/swift,LeoShimonaka/swift,apple/swift,frootloops/swift,jckarter/swift,felix91gr/swift,tinysun212/swift-windows,felix91gr/swift,harlanhaskins/swift,brentdax/swift,dduan/swift,glessard/swift,gregomni/swift,slavapestov/swift,hughbe/swift,Ivacker/swift,kperryua/swift,kperryua/swift,MukeshKumarS/Swift,sdulal/swift,LeoShimonaka/swift,shahmishal/swift,ben-ng/swift,johnno1962d/swift,gregomni/swift,deyton/swift,brentdax/swift,dduan/swift,swiftix/swift.old,kperryua/swift,slavapestov/swift,ken0nek/swift,KrishMunot/swift,shahmishal/swift,therealbnut/swift,mightydeveloper/swift,arvedviehweger/swift,tardieu/swift,practicalswift/swift,swiftix/swift.old,parkera/swift,bitjammer/swift,JaSpa/swift,tardieu/swift,mightydeveloper/swift,harlanhaskins/swift,IngmarStein/swift,nathawes/swift,hooman/swift,jckarter/swift,kusl/swift,kentya6/swift,CodaFi/swift,tkremenek/swift,OscarSwanros/swift,apple/swift,gregomni/swift,roambotics/swift,JGiola/swift,shahmishal/swift,JaSpa/swift,tjw/swift,gribozavr/swift,kentya6/swift,practicalswift/swift,roambotics/swift,shajrawi/swift,KrishMunot/swift,shajrawi/swift,arvedviehweger/swift,CodaFi/swift,parkera/swift,modocache/swift,xwu/swift,karwa/swift,karwa/swift,bitjammer/swift,SwiftAndroid/swift,brentdax/swift,kstaring/swift,kstaring/swift,xwu/swift,swiftix/swift,return/swift,gmilos/swift,brentdax/swift,kusl/swift,atrick/swift,amraboelela/swift,danielmartin/swift,adrfer/swift,deyton/swift,airspeedswift/swift,xwu/swift,gregomni/swift,OscarSwanros/swift,johnno1962d/swift,uasys/swift,airspeedswift/swift,SwiftAndroid/swift,shahmishal/swift,amraboelela/swift,cbrentharris/swift,swiftix/swift,allevato/swift,rudkx/swift,sschiau/swift,slavapestov/swift,uasys/swift,russbishop/swift,swiftix/swift,sdulal/swift,gribozavr/swift,allevato/swift,kentya6/swift,tardieu/swift,lorentey/swift,manavgabhawala/swift,sdulal/swift,KrishMunot/swift,allevato/swift,JGiola/swift,xwu/swift,mightydeveloper/swift,modocache/swift,JaSpa/swift,djwbrown/swift,deyton/swift,ken0nek/swift,jopamer/swift,kentya6/swift,tardieu/swift,jmgc/swift,jtbandes/swift,airspeedswift/swift,jmgc/swift,xedin/swift,huonw/swift,jckarter/swift,KrishMunot/swift,shajrawi/swift,khizkhiz/swift,mightydeveloper/swift,russbishop/swift,atrick/swift,arvedviehweger/swift,frootloops/swift,felix91gr/swift,sdulal/swift,felix91gr/swift,harlanhaskins/swift,sschiau/swift,lorentey/swift,tinysun212/swift-windows,rudkx/swift,hooman/swift,alblue/swift,gottesmm/swift,lorentey/swift,allevato/swift,practicalswift/swift,alblue/swift,tjw/swift,stephentyrone/swift,gottesmm/swift,nathawes/swift,apple/swift,johnno1962d/swift,tinysun212/swift-windows,return/swift,dduan/swift,rudkx/swift,frootloops/swift,tkremenek/swift,modocache/swift,return/swift,allevato/swift,jmgc/swift,airspeedswift/swift,felix91gr/swift,danielmartin/swift,milseman/swift,lorentey/swift,practicalswift/swift,aschwaighofer/swift,tinysun212/swift-windows,nathawes/swift,kusl/swift,khizkhiz/swift,brentdax/swift,jopamer/swift,gribozavr/swift,adrfer/swift,atrick/swift,therealbnut/swift,harlanhaskins/swift,rudkx/swift,adrfer/swift,huonw/swift,jtbandes/swift,therealbnut/swift,ben-ng/swift,benlangmuir/swift,shahmishal/swift,return/swift,Jnosh/swift,calebd/swift,harlanhaskins/swift,karwa/swift,tinysun212/swift-windows,hooman/swift,kusl/swift,stephentyrone/swift,OscarSwanros/swift,devincoughlin/swift,kentya6/swift,codestergit/swift,OscarSwanros/swift,natecook1000/swift,atrick/swift,apple/swift,ken0nek/swift,hooman/swift,hughbe/swift,hughbe/swift,frootloops/swift,natecook1000/swift,Ivacker/swift,LeoShimonaka/swift,dduan/swift,MukeshKumarS/Swift,parkera/swift,uasys/swift,Ivacker/swift,zisko/swift,devincoughlin/swift,ahoppen/swift,adrfer/swift,tjw/swift,LeoShimonaka/swift,JaSpa/swift,xedin/swift,djwbrown/swift,stephentyrone/swift,roambotics/swift,glessard/swift,kstaring/swift,parkera/swift,Jnosh/swift,sschiau/swift,slavapestov/swift,natecook1000/swift,jopamer/swift,aschwaighofer/swift,djwbrown/swift,airspeedswift/swift,sdulal/swift,manavgabhawala/swift,MukeshKumarS/Swift,sdulal/swift,deyton/swift,tjw/swift,kstaring/swift,zisko/swift,jmgc/swift,milseman/swift,djwbrown/swift,MukeshKumarS/Swift,cbrentharris/swift,Ivacker/swift,shahmishal/swift,swiftix/swift.old,CodaFi/swift,OscarSwanros/swift,frootloops/swift,amraboelela/swift,kstaring/swift,codestergit/swift,natecook1000/swift,gmilos/swift,jmgc/swift,russbishop/swift,natecook1000/swift,gregomni/swift,LeoShimonaka/swift,kentya6/swift,milseman/swift,harlanhaskins/swift,codestergit/swift,IngmarStein/swift,MukeshKumarS/Swift,gribozavr/swift,JGiola/swift,LeoShimonaka/swift,tkremenek/swift,dduan/swift,Jnosh/swift,parkera/swift,gottesmm/swift,stephentyrone/swift,austinzheng/swift,austinzheng/swift,shajrawi/swift,uasys/swift,emilstahl/swift,djwbrown/swift,johnno1962d/swift,ahoppen/swift,hughbe/swift,therealbnut/swift,djwbrown/swift,arvedviehweger/swift,jtbandes/swift,devincoughlin/swift,swiftix/swift,harlanhaskins/swift,Ivacker/swift,khizkhiz/swift,swiftix/swift.old,gmilos/swift,tjw/swift,khizkhiz/swift,kstaring/swift,lorentey/swift,amraboelela/swift,frootloops/swift,LeoShimonaka/swift,devincoughlin/swift,JGiola/swift,austinzheng/swift,JaSpa/swift,jckarter/swift,adrfer/swift,Jnosh/swift,dduan/swift,sschiau/swift,tkremenek/swift,mightydeveloper/swift,jopamer/swift,jckarter/swift,cbrentharris/swift,lorentey/swift,zisko/swift,jtbandes/swift,natecook1000/swift,arvedviehweger/swift,xedin/swift,SwiftAndroid/swift,IngmarStein/swift,manavgabhawala/swift,IngmarStein/swift,sschiau/swift,milseman/swift,xedin/swift,slavapestov/swift,kperryua/swift,brentdax/swift,aschwaighofer/swift,allevato/swift,hughbe/swift,IngmarStein/swift,slavapestov/swift,benlangmuir/swift,karwa/swift,kentya6/swift,Jnosh/swift,gribozavr/swift,hughbe/swift,manavgabhawala/swift,alblue/swift,SwiftAndroid/swift,milseman/swift,kentya6/swift,allevato/swift,sschiau/swift,practicalswift/swift,modocache/swift,lorentey/swift,ken0nek/swift,adrfer/swift,jckarter/swift,emilstahl/swift,Ivacker/swift,johnno1962d/swift,uasys/swift,bitjammer/swift,practicalswift/swift,kusl/swift,natecook1000/swift,zisko/swift