[cmake] Expand $(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) in LLVM CMake paths.
[cmake] Expand $(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) in LLVM CMake paths.

In order to support swapping build types without reconfiguring, Swift's CMake
generated Xcode project has one directory for each cmake build type. This
behavior is implemented by placing in variables for Xcode to expand at build
time. This causes issues with our build, namely that our cmake scripts like to
"poke" around the LLVM build directory at configure time. Since the xcode
variables from the commit title are not expanded, failures occur since the
unexpanded paths do not exist.

This patch fixes this problem by expanding out those variables at configure time
from specific LLVM paths. This is essentially tieing LLVM to the specific
build-script build mode used. This is reasonable since we do not support
building in Xcode for configurations that were not selected at build-script
time.

rdar://27062396

alblue/swift,swiftix/swift,tardieu/swift,airspeedswift/swift,harlanhaskins/swift,airspeedswift/swift,ahoppen/swift,milseman/swift,nathawes/swift,nathawes/swift,alblue/swift,harlanhaskins/swift,tjw/swift,hooman/swift,calebd/swift,deyton/swift,uasys/swift,amraboelela/swift,shahmishal/swift,uasys/swift,roambotics/swift,Jnosh/swift,uasys/swift,parkera/swift,zisko/swift,lorentey/swift,tkremenek/swift,CodaFi/swift,hughbe/swift,sschiau/swift,bitjammer/swift,apple/swift,jckarter/swift,danielmartin/swift,practicalswift/swift,aschwaighofer/swift,alblue/swift,therealbnut/swift,practicalswift/swift,aschwaighofer/swift,airspeedswift/swift,apple/swift,gmilos/swift,xedin/swift,frootloops/swift,kperryua/swift,natecook1000/swift,huonw/swift,gribozavr/swift,parkera/swift,CodaFi/swift,apple/swift,ben-ng/swift,glessard/swift,jopamer/swift,JaSpa/swift,IngmarStein/swift,alblue/swift,CodaFi/swift,aschwaighofer/swift,jtbandes/swift,swiftix/swift,shajrawi/swift,brentdax/swift,xwu/swift,brentdax/swift,bitjammer/swift,danielmartin/swift,roambotics/swift,jckarter/swift,ben-ng/swift,lorentey/swift,JGiola/swift,gribozavr/swift,jckarter/swift,ben-ng/swift,jckarter/swift,zisko/swift,devincoughlin/swift,tinysun212/swift-windows,hughbe/swift,OscarSwanros/swift,alblue/swift,natecook1000/swift,devincoughlin/swift,stephentyrone/swift,gregomni/swift,Jnosh/swift,harlanhaskins/swift,jtbandes/swift,rudkx/swift,kstaring/swift,ben-ng/swift,milseman/swift,austinzheng/swift,practicalswift/swift,ahoppen/swift,shahmishal/swift,codestergit/swift,xedin/swift,karwa/swift,benlangmuir/swift,deyton/swift,ben-ng/swift,IngmarStein/swift,JaSpa/swift,bitjammer/swift,huonw/swift,atrick/swift,CodaFi/swift,manavgabhawala/swift,arvedviehweger/swift,brentdax/swift,natecook1000/swift,Jnosh/swift,IngmarStein/swift,therealbnut/swift,xedin/swift,JaSpa/swift,atrick/swift,kstaring/swift,benlangmuir/swift,gottesmm/swift,ben-ng/swift,Jnosh/swift,devincoughlin/swift,amraboelela/swift,calebd/swift,kperryua/swift,modocache/swift,djwbrown/swift,return/swift,gottesmm/swift,jtbandes/swift,kperryua/swift,apple/swift,stephentyrone/swift,tkremenek/swift,sschiau/swift,hughbe/swift,xwu/swift,aschwaighofer/swift,milseman/swift,jopamer/swift,harlanhaskins/swift,IngmarStein/swift,huonw/swift,lorentey/swift,gottesmm/swift,austinzheng/swift,russbishop/swift,stephentyrone/swift,felix91gr/swift,JGiola/swift,brentdax/swift,tkremenek/swift,tinysun212/swift-windows,sschiau/swift,bitjammer/swift,tkremenek/swift,shajrawi/swift,danielmartin/swift,russbishop/swift,benlangmuir/swift,IngmarStein/swift,russbishop/swift,karwa/swift,xwu/swift,CodaFi/swift,aschwaighofer/swift,danielmartin/swift,Jnosh/swift,hughbe/swift,therealbnut/swift,return/swift,benlangmuir/swift,modocache/swift,sschiau/swift,lorentey/swift,milseman/swift,jmgc/swift,lorentey/swift,JaSpa/swift,allevato/swift,nathawes/swift,gribozavr/swift,ahoppen/swift,CodaFi/swift,kperryua/swift,zisko/swift,gmilos/swift,amraboelela/swift,ahoppen/swift,IngmarStein/swift,glessard/swift,hooman/swift,modocache/swift,devincoughlin/swift,sschiau/swift,gmilos/swift,tardieu/swift,hooman/swift,jmgc/swift,calebd/swift,shajrawi/swift,practicalswift/swift,codestergit/swift,rudkx/swift,apple/swift,airspeedswift/swift,therealbnut/swift,parkera/swift,xwu/swift,tardieu/swift,benlangmuir/swift,xwu/swift,Jnosh/swift,calebd/swift,benlangmuir/swift,felix91gr/swift,xedin/swift,parkera/swift,russbishop/swift,frootloops/swift,airspeedswift/swift,OscarSwanros/swift,danielmartin/swift,austinzheng/swift,huonw/swift,amraboelela/swift,allevato/swift,xedin/swift,ahoppen/swift,uasys/swift,hooman/swift,kstaring/swift,practicalswift/swift,stephentyrone/swift,xedin/swift,gregomni/swift,jckarter/swift,hughbe/swift,gribozavr/swift,return/swift,hughbe/swift,lorentey/swift,atrick/swift,jmgc/swift,shajrawi/swift,IngmarStein/swift,apple/swift,felix91gr/swift,OscarSwanros/swift,roambotics/swift,shajrawi/swift,huonw/swift,arvedviehweger/swift,OscarSwanros/swift,gottesmm/swift,kperryua/swift,OscarSwanros/swift,aschwaighofer/swift,calebd/swift,devincoughlin/swift,brentdax/swift,jmgc/swift,zisko/swift,harlanhaskins/swift,karwa/swift,natecook1000/swift,glessard/swift,amraboelela/swift,zisko/swift,atrick/swift,karwa/swift,stephentyrone/swift,parkera/swift,allevato/swift,rudkx/swift,deyton/swift,gribozavr/swift,aschwaighofer/swift,kperryua/swift,arvedviehweger/swift,stephentyrone/swift,gribozavr/swift,parkera/swift,atrick/swift,sschiau/swift,huonw/swift,tinysun212/swift-windows,parkera/swift,shajrawi/swift,gmilos/swift,russbishop/swift,tjw/swift,codestergit/swift,swiftix/swift,codestergit/swift,gottesmm/swift,arvedviehweger/swift,karwa/swift,deyton/swift,austinzheng/swift,glessard/swift,jtbandes/swift,ben-ng/swift,JaSpa/swift,nathawes/swift,tardieu/swift,JGiola/swift,therealbnut/swift,hooman/swift,deyton/swift,jmgc/swift,brentdax/swift,deyton/swift,djwbrown/swift,kstaring/swift,hooman/swift,rudkx/swift,harlanhaskins/swift,kstaring/swift,tkremenek/swift,stephentyrone/swift,OscarSwanros/swift,shajrawi/swift,shahmishal/swift,allevato/swift,airspeedswift/swift,roambotics/swift,felix91gr/swift,CodaFi/swift,swiftix/swift,JaSpa/swift,rudkx/swift,JGiola/swift,return/swift,manavgabhawala/swift,djwbrown/swift,nathawes/swift,gregomni/swift,tinysun212/swift-windows,frootloops/swift,glessard/swift,tinysun212/swift-windows,tjw/swift,milseman/swift,djwbrown/swift,jmgc/swift,gregomni/swift,practicalswift/swift,gmilos/swift,danielmartin/swift,natecook1000/swift,tkremenek/swift,milseman/swift,parkera/swift,hooman/swift,shahmishal/swift,devincoughlin/swift,jckarter/swift,bitjammer/swift,atrick/swift,austinzheng/swift,amraboelela/swift,modocache/swift,swiftix/swift,xedin/swift,gribozavr/swift,frootloops/swift,manavgabhawala/swift,Jnosh/swift,tjw/swift,danielmartin/swift,austinzheng/swift,tjw/swift,jtbandes/swift,devincoughlin/swift,jopamer/swift,tinysun212/swift-windows,manavgabhawala/swift,russbishop/swift,djwbrown/swift,arvedviehweger/swift,karwa/swift,roambotics/swift,devincoughlin/swift,shahmishal/swift,natecook1000/swift,jopamer/swift,frootloops/swift,gottesmm/swift,tinysun212/swift-windows,harlanhaskins/swift,amraboelela/swift,jopamer/swift,glessard/swift,gottesmm/swift,felix91gr/swift,zisko/swift,jtbandes/swift,frootloops/swift,ahoppen/swift,austinzheng/swift,xwu/swift,roambotics/swift,rudkx/swift,jtbandes/swift,jmgc/swift,xwu/swift,tkremenek/swift,shahmishal/swift,djwbrown/swift,bitjammer/swift,swiftix/swift,jopamer/swift,uasys/swift,milseman/swift,gregomni/swift,kstaring/swift,shajrawi/swift,codestergit/swift,lorentey/swift,practicalswift/swift,shahmishal/swift,arvedviehweger/swift,JaSpa/swift,modocache/swift,sschiau/swift,gregomni/swift,airspeedswift/swift,calebd/swift,therealbnut/swift,felix91gr/swift,gmilos/swift,alblue/swift,kperryua/swift,alblue/swift,codestergit/swift,jopamer/swift,codestergit/swift,xedin/swift,karwa/swift,gmilos/swift,manavgabhawala/swift,swiftix/swift,jckarter/swift,modocache/swift,return/swift,return/swift,tjw/swift,JGiola/swift,OscarSwanros/swift,lorentey/swift,djwbrown/swift,manavgabhawala/swift,return/swift,tardieu/swift,practicalswift/swift,therealbnut/swift,uasys/swift,allevato/swift,allevato/swift,allevato/swift,shahmishal/swift,manavgabhawala/swift,russbishop/swift,nathawes/swift,calebd/swift,zisko/swift,tardieu/swift,kstaring/swift,tjw/swift,tardieu/swift,uasys/swift,hughbe/swift,deyton/swift,frootloops/swift,huonw/swift,gribozavr/swift,JGiola/swift,modocache/swift,brentdax/swift,karwa/swift,bitjammer/swift,arvedviehweger/swift,nathawes/swift,felix91gr/swift,sschiau/swift,natecook1000/swift