diff options
-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. |