install new lto dylib.  pass down LLVM_SUBMIT_VERSION

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47763 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/buildit/build_llvm b/utils/buildit/build_llvm
index b467ac7..b6d0cb7 100755
--- a/utils/buildit/build_llvm
+++ b/utils/buildit/build_llvm
@@ -92,6 +92,8 @@
 # don't want to make the builders hit swap by firing off too many gcc's at the
 # same time.
 make $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$TARGETS" \
+    LLVM_SUBMIT_VERSION=$LLVM_SUBMIT_VERSION \
+    LLVM_SUBMIT_SUBVERSION=$LLVM_SUBMIT_SUBVERSION \
     CXXFLAGS="-DLLVM_VERSION_INFO='\" Apple Build #$LLVM_VERSION\"'"
 
 if ! test $? == 0 ; then
@@ -164,9 +166,10 @@
 fi
 
 mkdir -p $LTO_HOME/lib
-mv lib/LLVMlto* $LTO_HOME/lib/.
-mkdir -p $LTO_HOME/include/llvm
-mv $DEST_DIR/usr/local/include/llvm/LinkTimeOptimizer.h $LTO_HOME/include/llvm/.
+mv lib/libLTO.dylib $LTO_HOME/lib/libLTO.dylib
+rm -f lib/libLTO.a lib/libLTO.la
+
+
 
 ################################################################################
 # Create SYM_DIR with information required for debugging.