summaryrefslogtreecommitdiff
path: root/src/support/defaults.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-01-17 20:26:04 -0800
committerGitHub <noreply@github.com>2018-01-17 20:26:04 -0800
commit692069c6eef63754c27e815fd948fea6185d7619 (patch)
treeec0e9615bb30a0a640746fb2e3743c614c48905f /src/support/defaults.h
parent0a9ddae715b2cff23a86cf14bbf6a4b870511395 (diff)
downloadbinaryen-692069c6eef63754c27e815fd948fea6185d7619.tar.gz
binaryen-692069c6eef63754c27e815fd948fea6185d7619.tar.bz2
binaryen-692069c6eef63754c27e815fd948fea6185d7619.zip
Refactor optimization defaults (#1366)
Followup to #1357. This moves the optimization settings into pass.h, and uses it from there in the various places. This also splits up huge lines from the tracing code, which put all block children (whose number can be arbitrarily large) on one line. This seems to have caused random errors on the bots, I suspect from overflowing a buffer. Anyhow, it's much more clear to split the lines at a reasonable length.
Diffstat (limited to 'src/support/defaults.h')
-rw-r--r--src/support/defaults.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/support/defaults.h b/src/support/defaults.h
deleted file mode 100644
index 0b9ca3f6d..000000000
--- a/src/support/defaults.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-* Copyright 2016 WebAssembly Community Group participants
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-// Default optimization level used by tools and the C/JS APIs
-#define BINARYEN_DEFAULT_OPTIMIZE_LEVEL 2
-
-// Default shrink level used by tools and the C/JS APIs
-#define BINARYEN_DEFAULT_SHRINK_LEVEL 1
-
-// Default debug info setting used by tools and the C/JS APIs
-#define BINARYEN_DEFAULT_DEBUG_INFO 0