diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-03 16:33:38 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-03 16:33:38 -0800 |
commit | a34c9814492df18d7ceee3417e72de380df5cd08 (patch) | |
tree | 3ed52f8f6dc2515e58ff7b3d5c04fb8dac9cd851 /lib/Target/JSBackend/JSBackend.cpp | |
parent | 1d33f493d6a107012e667ee9046a15510088f6f3 (diff) |
forward assertions setting into backend, and use it to check for invalid # of args in static calls
Diffstat (limited to 'lib/Target/JSBackend/JSBackend.cpp')
-rw-r--r-- | lib/Target/JSBackend/JSBackend.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/JSBackend/JSBackend.cpp b/lib/Target/JSBackend/JSBackend.cpp index b0a4b496ac..6ed2632441 100644 --- a/lib/Target/JSBackend/JSBackend.cpp +++ b/lib/Target/JSBackend/JSBackend.cpp @@ -76,6 +76,11 @@ ReservedFunctionPointers("emscripten-reserved-function-pointers", cl::desc("Number of reserved slots in function tables for functions to be added at runtime (see emscripten RESERVED_FUNCTION_POINTERS option)"), cl::init(0)); +static cl::opt<int> +EmscriptenAssertions("emscripten-assertions", + cl::desc("Additional JS-specific assertions (see emscripten ASSERTIONS)"), + cl::init(0)); + extern "C" void LLVMInitializeJSBackendTarget() { // Register the target. RegisterTargetMachine<JSTargetMachine> X(TheJSBackendTarget); |