[WebAssembly] MC: Mark more function aliases as functions
authorSam Clegg <sbc@chromium.org>
Mon, 4 Feb 2019 23:07:34 +0000 (23:07 +0000)
committerSam Clegg <sbc@chromium.org>
Mon, 4 Feb 2019 23:07:34 +0000 (23:07 +0000)
commit313f9f54f5a85790ae09cc48c1df54a4c635a3e3
tree310e330d55647af41f5902b5d5e096b6266439b3
parent7c907bac6fd51835ed4410845cc25b44cdd08c95
[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

llvm-svn: 353109
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/MC/WebAssembly/function-alias.ll [new file with mode: 0644]