This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Simplify writing of exports section. NFC.
ClosedPublic

Authored by sbc100 on Mar 1 2018, 12:47 PM.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

sbc100 created this revision.Mar 1 2018, 12:47 PM
sbc100 abandoned this revision.Mar 1 2018, 12:50 PM
sbc100 added reviewers: ncw, ruiu.

Not sure this actually simplifies the code.

ruiu added a comment.Mar 1 2018, 12:53 PM

LGTM

wasm/Writer.cpp
753

If you change this line to

} else {
  auto *D = cast<DefinedData>(Sym);

then you can remove the following llvm_unreachable.

sbc100 reclaimed this revision.May 10 2018, 11:12 AM
This revision was not accepted when it landed; it landed in state Needs Review.May 10 2018, 11:14 AM
This revision was automatically updated to reflect the committed changes.