[cfe-commits] r91960 - in /cfe/trunk: include/clang/Driver/ToolChain.h lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Tue Dec 22 16:46:38 PST 2009
Author: ddunbar
Date: Tue Dec 22 18:46:38 2009
New Revision: 91960
URL: http://llvm.org/viewvc/llvm-project?rev=91960&view=rev
Log:
Driver: Drop ToolChain::getHost()
Modified:
cfe/trunk/include/clang/Driver/ToolChain.h
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/include/clang/Driver/ToolChain.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/ToolChain.h?rev=91960&r1=91959&r2=91960&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/ToolChain.h (original)
+++ cfe/trunk/include/clang/Driver/ToolChain.h Tue Dec 22 18:46:38 2009
@@ -51,7 +51,6 @@
// 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(); }
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=91960&r1=91959&r2=91960&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Dec 22 18:46:38 2009
@@ -1220,7 +1220,7 @@
// 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.
More information about the cfe-commits
mailing list