mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 17:01:00 +08:00
Driver: Drop ToolChain::getHost()
llvm-svn: 91960
This commit is contained in:
@@ -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(); }
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user