InputList Inputs;
BuildInputs(C->getDefaultToolChain(), C->getArgs(), Inputs);
- // Construct the list of abstract actions to perform for this compilation.
- if (Host->useDriverDriver())
+ // Construct the list of abstract actions to perform for this compilation. On
+ // Darwin target OSes this uses the driver-driver and universal actions.
+ if (TargetTriple.isOSDarwin())
BuildUniversalActions(C->getDefaultToolChain(), C->getArgs(),
Inputs, C->getActions());
else
return;
}
- // Construct the list of abstract actions to perform for this compilation.
- if (Host->useDriverDriver())
+ // Construct the list of abstract actions to perform for this compilation. On
+ // Darwin OSes this uses the driver-driver and builds universal actions.
+ if (TargetTriple.isOSDarwin())
BuildUniversalActions(C.getDefaultToolChain(), C.getArgs(),
Inputs, C.getActions());
else
DarwinHostInfo(const Driver &D, const llvm::Triple &Triple);
~DarwinHostInfo();
- virtual bool useDriverDriver() const;
-
virtual ToolChain *CreateToolChain(const ArgList &Args,
const char *ArchName) const;
};
delete it->second;
}
-bool DarwinHostInfo::useDriverDriver() const {
- return true;
-}
-
ToolChain *DarwinHostInfo::CreateToolChain(const ArgList &Args,
const char *ArchName) const {
llvm::Triple::ArchType Arch;
TCEHostInfo(const Driver &D, const llvm::Triple &Triple);
~TCEHostInfo() {}
- virtual bool useDriverDriver() const;
-
virtual ToolChain *CreateToolChain(const ArgList &Args,
const char *ArchName) const;
};
: HostInfo(D, Triple) {
}
-bool TCEHostInfo::useDriverDriver() const {
- return false;
-}
-
ToolChain *TCEHostInfo::CreateToolChain(const ArgList &Args,
const char *ArchName) const {
llvm::Triple TCTriple(getTriple());
UnknownHostInfo(const Driver &D, const llvm::Triple& Triple);
~UnknownHostInfo();
- virtual bool useDriverDriver() const;
-
virtual ToolChain *CreateToolChain(const ArgList &Args,
const char *ArchName) const;
};
delete it->second;
}
-bool UnknownHostInfo::useDriverDriver() const {
- return false;
-}
-
ToolChain *UnknownHostInfo::CreateToolChain(const ArgList &Args,
const char *ArchName) const {
assert(!ArchName &&
: HostInfo(D, Triple) {}
~OpenBSDHostInfo();
- virtual bool useDriverDriver() const;
-
virtual ToolChain *CreateToolChain(const ArgList &Args,
const char *ArchName) const;
};
delete it->second;
}
-bool OpenBSDHostInfo::useDriverDriver() const {
- return false;
-}
-
ToolChain *OpenBSDHostInfo::CreateToolChain(const ArgList &Args,
const char *ArchName) const {
assert(!ArchName &&
: HostInfo(D, Triple) {}
~AuroraUXHostInfo();
- virtual bool useDriverDriver() const;
-
virtual ToolChain *CreateToolChain(const ArgList &Args,
const char *ArchName) const;
};
delete it->second;
}
-bool AuroraUXHostInfo::useDriverDriver() const {
- return false;
-}
-
ToolChain *AuroraUXHostInfo::CreateToolChain(const ArgList &Args,
const char *ArchName) const {
assert(!ArchName &&
: HostInfo(D, Triple) {}
~FreeBSDHostInfo();
- virtual bool useDriverDriver() const;
-
virtual ToolChain *CreateToolChain(const ArgList &Args,
const char *ArchName) const;
};
delete it->second;
}
-bool FreeBSDHostInfo::useDriverDriver() const {
- return false;
-}
-
ToolChain *FreeBSDHostInfo::CreateToolChain(const ArgList &Args,
const char *ArchName) const {
assert(!ArchName &&
: HostInfo(D, Triple) {}
~NetBSDHostInfo();
- virtual bool useDriverDriver() const;
-
virtual ToolChain *CreateToolChain(const ArgList &Args,
const char *ArchName) const;
};
delete it->second;
}
-bool NetBSDHostInfo::useDriverDriver() const {
- return false;
-}
-
ToolChain *NetBSDHostInfo::CreateToolChain(const ArgList &Args,
const char *ArchName) const {
assert(!ArchName &&
: HostInfo(D, Triple) {}
~MinixHostInfo();
- virtual bool useDriverDriver() const;
-
virtual ToolChain *CreateToolChain(const ArgList &Args,
const char *ArchName) const;
};
}
}
-bool MinixHostInfo::useDriverDriver() const {
- return false;
-}
-
ToolChain *MinixHostInfo::CreateToolChain(const ArgList &Args,
const char *ArchName) const {
assert(!ArchName &&
: HostInfo(D, Triple) {}
~DragonFlyHostInfo();
- virtual bool useDriverDriver() const;
-
virtual ToolChain *CreateToolChain(const ArgList &Args,
const char *ArchName) const;
};
delete it->second;
}
-bool DragonFlyHostInfo::useDriverDriver() const {
- return false;
-}
-
ToolChain *DragonFlyHostInfo::CreateToolChain(const ArgList &Args,
const char *ArchName) const {
assert(!ArchName &&
: HostInfo(D, Triple) {}
~LinuxHostInfo();
- virtual bool useDriverDriver() const;
-
virtual ToolChain *CreateToolChain(const ArgList &Args,
const char *ArchName) const;
};
delete it->second;
}
-bool LinuxHostInfo::useDriverDriver() const {
- return false;
-}
-
ToolChain *LinuxHostInfo::CreateToolChain(const ArgList &Args,
const char *ArchName) const {
WindowsHostInfo(const Driver &D, const llvm::Triple& Triple);
~WindowsHostInfo();
- virtual bool useDriverDriver() const;
-
virtual types::ID lookupTypeForExtension(const char *Ext) const {
return types::lookupTypeForExtension(Ext);
}
delete it->second;
}
-bool WindowsHostInfo::useDriverDriver() const {
- return false;
-}
-
ToolChain *WindowsHostInfo::CreateToolChain(const ArgList &Args,
const char *ArchName) const {
assert(!ArchName &&