diff options
Diffstat (limited to 'src/wasm-debug.h')
-rw-r--r-- | src/wasm-debug.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-debug.h b/src/wasm-debug.h index 009edb555..d5ab337d4 100644 --- a/src/wasm-debug.h +++ b/src/wasm-debug.h @@ -23,6 +23,7 @@ #include <string> +#include "pass.h" #include "wasm.h" namespace wasm { @@ -36,6 +37,10 @@ bool hasDWARFSections(const Module& wasm); // Dump the DWARF sections to stdout. void dumpDWARF(const Module& wasm); +// Check whether we should preserve valid DWARF while optimizing. (If so, we +// will disable optimizations that currently cause issues with debug info.) +bool shouldPreserveDWARF(PassOptions& options, Module& wasm); + // Update the DWARF sections. void writeDWARFSections(Module& wasm, const BinaryLocations& newLocations); |