summaryrefslogtreecommitdiff
path: root/src/passes/LegalizeJSInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/LegalizeJSInterface.cpp')
-rw-r--r--src/passes/LegalizeJSInterface.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/passes/LegalizeJSInterface.cpp b/src/passes/LegalizeJSInterface.cpp
index a0b526a81..bfc7e192b 100644
--- a/src/passes/LegalizeJSInterface.cpp
+++ b/src/passes/LegalizeJSInterface.cpp
@@ -64,9 +64,8 @@ struct LegalizeJSInterface : public Pass {
setTempRet0 = nullptr;
getTempRet0 = nullptr;
auto exportOriginals =
- getPassOptions().hasArgument("legalize-js-interface-export-originals");
- exportedHelpers =
- getPassOptions().hasArgument("legalize-js-interface-exported-helpers");
+ hasArgument("legalize-js-interface-export-originals");
+ exportedHelpers = hasArgument("legalize-js-interface-exported-helpers");
// for each illegal export, we must export a legalized stub instead
std::vector<std::unique_ptr<Export>> newExports;
for (auto& ex : module->exports) {