[WebAssembly][NFC] Refactor table handling in WebAssembly::wasmSymbolSetType
authorAlex Bradbury <asb@igalia.com>
Wed, 6 Jul 2022 04:16:25 +0000 (05:16 +0100)
committerAlex Bradbury <asb@igalia.com>
Wed, 6 Jul 2022 04:16:25 +0000 (05:16 +0100)
commit484b4f3579808386b6b9314be1e841ffe3d769a6
treef1c43cf612e5caef2478d6ec0e274bb87b32d44a
parent4dc46a174bf702883925cac905c4dca5d7bf58f0
[WebAssembly][NFC] Refactor table handling in WebAssembly::wasmSymbolSetType

Use the isExternRefType and isFuncRefType helpers rather than
reimplementing that logic in this function (which acts as a blocker to
work to prototype alternative IR-level representations of reference
types).

This relands 8ccc7e0aa461 (which had compilation errors).
llvm/lib/Target/WebAssembly/Utils/WebAssemblyTypeUtilities.cpp