summaryrefslogtreecommitdiff
path: root/src/tools/asm2wasm.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-06-07 11:31:35 -0700
committerGitHub <noreply@github.com>2019-06-07 11:31:35 -0700
commit284c9357d84165b51e04fa939debddeedbf2eb99 (patch)
tree8ed2a7d1c751b770a7904c45b996af0ddba256bb /src/tools/asm2wasm.cpp
parentcac94c5aece24855c2d8cdc73e75f7f5abb29cd2 (diff)
downloadbinaryen-284c9357d84165b51e04fa939debddeedbf2eb99.tar.gz
binaryen-284c9357d84165b51e04fa939debddeedbf2eb99.tar.bz2
binaryen-284c9357d84165b51e04fa939debddeedbf2eb99.zip
Refactor -g param parsing (#2167)
Use one shared location in optimization-options as much as possible. This also allows tools like wasm2js to receive that flag.
Diffstat (limited to 'src/tools/asm2wasm.cpp')
-rw-r--r--src/tools/asm2wasm.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/tools/asm2wasm.cpp b/src/tools/asm2wasm.cpp
index cbd72abe0..083f3386b 100644
--- a/src/tools/asm2wasm.cpp
+++ b/src/tools/asm2wasm.cpp
@@ -140,13 +140,6 @@ int main(int argc, const char* argv[]) {
[&legalizeJavaScriptFFI](Options* o, const std::string&) {
legalizeJavaScriptFFI = false;
})
- .add("--debuginfo",
- "-g",
- "Emit names section in wasm binary (or full debuginfo in wast)",
- Options::Arguments::Zero,
- [&](Options* o, const std::string& arguments) {
- options.passOptions.debugInfo = true;
- })
.add("--source-map",
"-sm",
"Emit source map (if using binary output) to the specified file",