mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "[LTO] Support LLVM level link time optimization on Darwin, Linux and Windows"
This commit is contained in:
committed by
GitHub
parent
cc84c7b740
commit
71309a8fa9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user