summaryrefslogtreecommitdiff
path: root/wasm/MarkLive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wasm/MarkLive.cpp')
-rw-r--r--wasm/MarkLive.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/wasm/MarkLive.cpp b/wasm/MarkLive.cpp
index dfaa712c32966..3bbd1148f6ad3 100644
--- a/wasm/MarkLive.cpp
+++ b/wasm/MarkLive.cpp
@@ -22,6 +22,7 @@
#include "MarkLive.h"
#include "Config.h"
#include "InputChunks.h"
+#include "InputEvent.h"
#include "InputGlobal.h"
#include "SymbolTable.h"
#include "Symbols.h"
@@ -30,8 +31,6 @@
using namespace llvm;
using namespace llvm::wasm;
-using namespace lld;
-using namespace lld::wasm;
void lld::wasm::markLive() {
if (!Config->GcSections)
@@ -107,6 +106,9 @@ void lld::wasm::markLive() {
for (InputGlobal *G : Obj->Globals)
if (!G->Live)
message("removing unused section " + toString(G));
+ for (InputEvent *E : Obj->Events)
+ if (!E->Live)
+ message("removing unused section " + toString(E));
}
for (InputChunk *C : Symtab->SyntheticFunctions)
if (!C->Live)