[WebAssembly] Inline accessor functions that are called only once.
authorRui Ueyama <ruiu@google.com>
Wed, 28 Feb 2018 00:26:26 +0000 (00:26 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 28 Feb 2018 00:26:26 +0000 (00:26 +0000)
commitd1063bb9f9900c0ebe6513ae2cf45e6ba7a59ff9
treefcdbe2d78c6b43b2307b9620effb3800e0ebb5cf
parent28f3b20db5949328f950a25f96434a57bcfdac19
[WebAssembly] Inline accessor functions that are called only once.

Looks like these accessor functions are a bit overly defensive, and
due to the amount of code, that part isn't easy to read. We have
code to log translation results in writeTo and writeRelocations, so
I don't think we need to log it again in these functions.
I think the new function is much easier to understand.

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

llvm-svn: 326277
lld/wasm/InputFiles.cpp
lld/wasm/InputFiles.h