[WebAssembly] MC: Mark more function aliases as functions
commitdec46528529b6539b704dc15a4282b47196baa46
authorSam Clegg <sbc@chromium.org>
Mon, 4 Feb 2019 23:07:34 +0000 (4 23:07 +0000)
committerSam Clegg <sbc@chromium.org>
Mon, 4 Feb 2019 23:07:34 +0000 (4 23:07 +0000)
treef022ffb7ed9a3f04393af36552e772be40a88c6e
parentab8dc6c3bd73b838ad17ef08b853fcaba47031b5
[WebAssembly] MC: Mark more function aliases as functions

Aliases of functions are now marked as function symbols even if
they are bitcast to some other other non-function type.
This is important for WebAssembly where object and function
symbols can't alias each other.

Fixes PR38866

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353109 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/MC/WebAssembly/function-alias.ll [new file with mode: 0644]