This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Fix import statement
ClosedPublic

Authored by binji on Oct 29 2015, 3:53 PM.

Details

Reviewers
jfb
Summary

Imports should be generated like (param i32 f32...) not (param i32) (param f32) ...

Diff Detail

Repository
rL LLVM

Event Timeline

binji updated this revision to Diff 38772.Oct 29 2015, 3:53 PM
binji retitled this revision from to [WebAssembly] Fix import statement.
binji updated this object.
binji added a reviewer: jfb.
binji set the repository for this revision to rL LLVM.
jfb added inline comments.Oct 29 2015, 4:01 PM
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
357

Does this do the right thing when the param list is empty? IIUC it does:

(param)

?

Could you add a test?

binji updated this revision to Diff 38774.Oct 29 2015, 5:17 PM
binji removed rL LLVM as the repository for this revision.
binji marked an inline comment as done.
jfb accepted this revision.Oct 30 2015, 9:43 AM
jfb edited edge metadata.

lgtm

This revision is now accepted and ready to land.Oct 30 2015, 9:43 AM
jfb closed this revision.Oct 30 2015, 9:45 AM

r251714