From: Daniel Dunbar Date: Wed, 23 Dec 2009 00:46:38 +0000 (+0000) Subject: Driver: Drop ToolChain::getHost() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bda434673d3c51a2ba6b412f100ccfcf3e7083f;p=clang Driver: Drop ToolChain::getHost() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91960 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/ToolChain.h b/include/clang/Driver/ToolChain.h index 238b726a8f..b3c2d05ef5 100644 --- a/include/clang/Driver/ToolChain.h +++ b/include/clang/Driver/ToolChain.h @@ -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(); } diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 8ac448fdaa..8f0af21335 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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.