]> granicus.if.org Git - llvm/commit
[WebAssembly] Fix symbol type for addresses of external functions
authorSam Clegg <sbc@chromium.org>
Tue, 13 Jun 2017 01:42:21 +0000 (01:42 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 13 Jun 2017 01:42:21 +0000 (01:42 +0000)
commitcbf4a3dfadbedd488b125a835f5d627bb1fe282b
treef49fa4e8e90f9bcf3eee96b50d0cf7dc6c9e01ab
parentcff96a9836c39723fac82f078761e48631f05d7b
[WebAssembly] Fix symbol type for addresses of external functions

These symbols were previously not being marked as functions
so were appearing as globals instead, and with the incorrect
relocation type.

Without this fix, objects that take address of external
functions include them as global imports rather than function
imports which then fails at link time.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305263 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
test/MC/WebAssembly/external-data.ll
test/MC/WebAssembly/external-func-address.ll [new file with mode: 0644]