[PATCH] D43517: Use more early returns in SymbolTable.cpp.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 10:42:25 PST 2018
ruiu created this revision.
ruiu added a reviewer: sbc100.
Herald added a subscriber: aheejin.
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.
https://reviews.llvm.org/D43517
Files:
lld/wasm/SymbolTable.cpp
lld/wasm/SymbolTable.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43517.135095.patch
Type: text/x-patch
Size: 6014 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180220/5a885494/attachment.bin>
More information about the llvm-commits
mailing list