From db9124f1de0478dcac525009b6f1589b44a7edd8 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 26 Apr 2019 16:59:41 -0700 Subject: Apply format changes from #2048 (#2059) Mass change to apply clang-format to everything. We are applying this in a PR by me so the (git) blame is all mine ;) but @aheejin did all the work to get clang-format set up and all the manual work to tidy up some things to make the output nicer in #2048 --- src/passes/ExtractFunction.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/passes/ExtractFunction.cpp') diff --git a/src/passes/ExtractFunction.cpp b/src/passes/ExtractFunction.cpp index 8a97ced8e..8942771fe 100644 --- a/src/passes/ExtractFunction.cpp +++ b/src/passes/ExtractFunction.cpp @@ -18,14 +18,16 @@ // with (mostly) just the code you want to debug (function-parallel, // non-lto) passes on. -#include "wasm.h" #include "pass.h" +#include "wasm.h" namespace wasm { struct ExtractFunction : public Pass { void run(PassRunner* runner, Module* module) override { - Name name = runner->options.getArgument("extract", "ExtractFunction usage: wasm-opt --pass-arg=extract:FUNCTION_NAME"); + Name name = runner->options.getArgument( + "extract", + "ExtractFunction usage: wasm-opt --pass-arg=extract:FUNCTION_NAME"); std::cerr << "extracting " << name << "\n"; bool found = false; for (auto& func : module->functions) { @@ -58,9 +60,6 @@ struct ExtractFunction : public Pass { // declare pass -Pass *createExtractFunctionPass() { - return new ExtractFunction(); -} +Pass* createExtractFunctionPass() { return new ExtractFunction(); } } // namespace wasm - -- cgit v1.2.3