]> granicus.if.org Git - clang/commitdiff
Driver: Drop ToolChain::getHost()
authorDaniel Dunbar <daniel@zuster.org>
Wed, 23 Dec 2009 00:46:38 +0000 (00:46 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 23 Dec 2009 00:46:38 +0000 (00:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91960 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/ToolChain.h
lib/Driver/Tools.cpp

index 238b726a8fd883091d4f779a4d6946c8ee3121b7..b3c2d05ef5634662ed428f0d2846419ba95cbe07 100644 (file)
@@ -51,7 +51,6 @@ public:
   // Accessors
 
   const Driver &getDriver() const;
-  const HostInfo &getHost() const { return Host; }
   const llvm::Triple &getTriple() const { return Triple; }
 
   std::string getArchName() const { return Triple.getArchName(); }
index 8ac448fdaa8156a90f8ede63fec251eb2b725bd1..8f0af21335c11c79fe3d89fcbd4c1e573cd6ef28 100644 (file)
@@ -1220,7 +1220,7 @@ void gcc::Common::ConstructJob(Compilation &C, const JobAction &JA,
 
   // If using a driver driver, force the arch.
   const std::string &Arch = getToolChain().getArchName();
-  if (getToolChain().getHost().useDriverDriver()) {
+  if (getToolChain().getTriple().getOS() == llvm::Triple::Darwin) {
     CmdArgs.push_back("-arch");
 
     // FIXME: Remove these special cases.