diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-23 00:46:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-23 00:46:38 +0000 |
commit | 1bda434673d3c51a2ba6b412f100ccfcf3e7083f (patch) | |
tree | a5bd978405ca4204f55cca9088e01900ea5d286b | |
parent | df370002215a56cbbee139630f1cd8c8299b861f (diff) |
Driver: Drop ToolChain::getHost()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91960 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Driver/ToolChain.h | 1 | ||||
-rw-r--r-- | lib/Driver/Tools.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
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. |