From d53c64875ff0367dbc28ccea3d3299809fd8ee36 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 3 Dec 2018 15:35:35 -0800 Subject: Add --strip that removes debug info (#1787) This is sort of like --strip on a native binary. The more specific use case for us is e.g. you link with a library that has -g in its CFLAGS, but you don't want debug info in your final executable (I hit this with poppler now). We can make emcc pass this to binaryen if emcc is not building an output with intended debug info. --- src/wasm.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/wasm.h') diff --git a/src/wasm.h b/src/wasm.h index 2e09ef088..424f89d0b 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -642,6 +642,9 @@ public: Name getLocalNameOrGeneric(Index index); bool hasLocalName(Index index) const; + + void clearNames(); + void clearDebugInfo(); }; // The kind of an import or export. @@ -792,6 +795,8 @@ public: void removeGlobal(Name name); void updateMaps(); + + void clearDebugInfo(); }; } // namespace wasm -- cgit v1.2.3