Reland of r278967 (reverted in r278973), added lit.local.cfg to prevent test failures on non-WebAssembly builds.
Currently, enabling debug information when compiling for WebAssembly crashes the backend. This commit fixes these by skipping debug values in backend passes.