[WebAssembly] Make starting indices calcaulation simpler (NFC)
authorHeejin Ahn <aheejin@gmail.com>
Mon, 19 Nov 2018 23:21:25 +0000 (23:21 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Mon, 19 Nov 2018 23:21:25 +0000 (23:21 +0000)
commitaeaab9925edbd30c84f52f4f38d001526ecaf8ee
treea1c312233096a8a66f3155e258eb811be87dc13f
parentf536cb0481a36a69efea34bb12073c6281ae89f2
[WebAssembly] Make starting indices calcaulation simpler (NFC)

Summary:
At the beginning of `assignIndexes() function, when `FunctionIndex` and
`GlobalIndex` variables are created, `InputFunctions` and `InputGlobals`
vectors are guaranteed to be empty, because those vectors are only
populated in `assignIndexes()` function. Current code looks like they
are nonempty, so this patch deletes them for better readability.

Reviewers: sbc100

Subscribers: dschuff, jgravelle-google, sunfish, llvm-commits

Differential Revision: https://reviews.llvm.org/D54687

llvm-svn: 347272
lld/wasm/Writer.cpp