diff options
Diffstat (limited to 'src/passes')
-rw-r--r-- | src/passes/LowerIfElse.cpp | 17 | ||||
-rw-r--r-- | src/passes/NameManager.cpp | 17 | ||||
-rw-r--r-- | src/passes/RemoveImports.cpp | 17 |
3 files changed, 48 insertions, 3 deletions
diff --git a/src/passes/LowerIfElse.cpp b/src/passes/LowerIfElse.cpp index 1b8376ea4..711f5469c 100644 --- a/src/passes/LowerIfElse.cpp +++ b/src/passes/LowerIfElse.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2015 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. + */ + // // Lowers if (x) y else z into // @@ -46,4 +62,3 @@ struct LowerIfElse : public Pass { static RegisterPass<LowerIfElse> registerPass("lower-if-else", "lowers if-elses into ifs, blocks and branches"); } // namespace wasm - diff --git a/src/passes/NameManager.cpp b/src/passes/NameManager.cpp index 34ea6adac..8ed29c478 100644 --- a/src/passes/NameManager.cpp +++ b/src/passes/NameManager.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2015 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. + */ + // // NameManager // @@ -62,4 +78,3 @@ void NameManager::visitExport(Export* curr) { static RegisterPass<NameManager> registerPass("name-manager", "utility pass to manage names in modules"); } // namespace wasm - diff --git a/src/passes/RemoveImports.cpp b/src/passes/RemoveImports.cpp index 561002f57..44b7fc1ed 100644 --- a/src/passes/RemoveImports.cpp +++ b/src/passes/RemoveImports.cpp @@ -1,3 +1,19 @@ +/* + * Copyright 2015 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. + */ + // // Removeds imports, and replaces them with nops. This is useful // for running a module through the reference interpreter, which @@ -40,4 +56,3 @@ struct RemoveImports : public Pass { static RegisterPass<RemoveImports> registerPass("remove-imports", "removes imports and replaces them with nops"); } // namespace wasm - |