Driver: Drop ToolChain::getHost()

llvm-svn: 91960
This commit is contained in:
Daniel Dunbar
2009-12-23 00:46:38 +00:00
parent c7dccd8ad2
commit f4894fe0eb
2 changed files with 1 additions and 2 deletions

View 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(); }

View 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.