Driver: Add host info.
 - Replace assorted -ccc-host-* options by -ccc-host-triple which is
   more sane.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66600 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp
index ad6c807..b9e94b2 100644
--- a/tools/driver/driver.cpp
+++ b/tools/driver/driver.cpp
@@ -18,6 +18,7 @@
 #include "clang/Driver/Options.h"
 
 #include "llvm/ADT/OwningPtr.h"
+#include "llvm/Config/config.h"
 #include "llvm/System/Path.h"
 #include "llvm/System/Signals.h"
 using namespace clang::driver;
@@ -30,8 +31,11 @@
   // is that the path derived from this will influence search paths.
   llvm::sys::Path Path(argv[0]);
 
+  // FIXME: Use the triple of the host, not the triple that we were
+  // compiled on.
   llvm::OwningPtr<Driver> TheDriver(new Driver(Path.getBasename().c_str(),
-                                               Path.getDirname().c_str()));
+                                               Path.getDirname().c_str(),
+                                               LLVM_HOSTTRIPLE));
 
   llvm::OwningPtr<Compilation> C(TheDriver->BuildCompilation(argc, argv));