Use more early returns in SymbolTable.cpp.
authorRui Ueyama <ruiu@google.com>
Tue, 20 Feb 2018 21:08:47 +0000 (21:08 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 20 Feb 2018 21:08:47 +0000 (21:08 +0000)
commitc03c9040aa456d521e34dae83a984f4e43645cd9
tree8960f58dca4a8ee657be4d3d5e2dac90115921d2
parent78f766a9aa79fad9dc2affc018d7476e2f9d6685
Use more early returns in SymbolTable.cpp.

I think if statements that end with return is easier to read than
cascaded if-else-if-else-if statements because it makes clear that
execution of a function terminates there. This patch also adds more
blank lines to separate code blocks to meaningful pieces.

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

llvm-svn: 325625
lld/wasm/SymbolTable.cpp