Revert "[LTO] Support LLVM level link time optimization on Darwin, Linux and Windows"

This commit is contained in:
Saleem Abdulrasool
2020-06-07 11:25:48 -07:00
committed by GitHub
parent cc84c7b740
commit 71309a8fa9
23 changed files with 35 additions and 255 deletions

View File

@@ -328,19 +328,16 @@ public:
class DynamicLinkJobAction : public JobAction {
virtual void anchor();
LinkKind Kind;
bool LTO;
public:
DynamicLinkJobAction(ArrayRef<const Action *> Inputs, LinkKind K, bool LTO)
DynamicLinkJobAction(ArrayRef<const Action *> Inputs, LinkKind K)
: JobAction(Action::Kind::DynamicLinkJob, Inputs, file_types::TY_Image),
Kind(K), LTO(LTO) {
Kind(K) {
assert(Kind != LinkKind::None && Kind != LinkKind::StaticLibrary);
}
LinkKind getKind() const { return Kind; }
bool PerformLTO() const { return LTO; }
static bool classof(const Action *A) {
return A->getKind() == Action::Kind::DynamicLinkJob;
}