Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No dwarf #51

Merged
merged 5 commits into from
Feb 14, 2019
Merged

No dwarf #51

merged 5 commits into from
Feb 14, 2019

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Feb 14, 2019

No description provided.

…tting

This skips checking all of our items for whether they have names or not (which
they won't if we aren't configured to emit names, but we don't need to do that
big traversal in this case).
@fitzgen fitzgen requested a review from alexcrichton February 14, 2019 14:25
@@ -256,9 +256,17 @@ impl Module {
self.funcs.emit(&mut cx);
self.data.emit(&mut cx);

emit_name_section(&mut cx);
if self.config.generate_names {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh so the generate_names here was intended for debugging passes in walrus itself, so a lot of debug information is tied to this currently. I think we may want a separate flag (on by default whereas the generate_names flag is off by default) to emit the name section?

self.producers.emit(&mut cx);
for section in self.custom.iter() {
if !self.config.generate_dwarf && section.name.starts_with(".debug") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if this should also be skipped when parsing to avoid keeping the dwarf sections in memory?

…ems`

Since this is not about generating the name section or not, but whether we give
names like "f0" to anonymous functions
@fitzgen fitzgen merged commit 0a4fa44 into rustwasm:master Feb 14, 2019
@fitzgen fitzgen deleted the no-dwarf branch February 14, 2019 15:13
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.

2 participants