Skip to content

Avoid returning a PassRunner just for OptimizationOptions#1234

Merged
kripken merged 4 commits intomasterfrom
get-pass-runner
Oct 20, 2017
Merged

Avoid returning a PassRunner just for OptimizationOptions#1234
kripken merged 4 commits intomasterfrom
get-pass-runner

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Oct 19, 2017

It would need a more careful design with a copy constructor. instead, just simplify the API to do the thing we need, which is run the passes.

See #1228.

…eed a more careful design with a copy constructor. instead, just simplify the API to do the thing we need, which is run the passes
Comment thread src/pass.h Outdated

PassRunner(Module* wasm) : wasm(wasm), allocator(&wasm->allocator) {}
PassRunner(Module* wasm, PassOptions options) : wasm(wasm), allocator(&wasm->allocator), options(options) {}
PassRunner(const PassRunner& that) = delete; // no copy constructor, we control |passes|
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll want to delete the copy assignment operator too.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done.

@kripken kripken merged commit 939706d into master Oct 20, 2017
@kripken kripken deleted the get-pass-runner branch October 20, 2017 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants