WebAssembly: support imports
authorJF Bastien <jfb@google.com>
Wed, 21 Oct 2015 02:23:09 +0000 (02:23 +0000)
committerJF Bastien <jfb@google.com>
Wed, 21 Oct 2015 02:23:09 +0000 (02:23 +0000)
commit3aa0189bfe3606c48af75cde04562f29273dfbcc
tree2a314ac41da8d61007dc9c406f91fabe537885df
parent491ae53e26e5d7f615d25e2e79f1fe2f29c26241
WebAssembly: support imports

C/C++ code can declare an extern function, which will show up as an import in WebAssembly's output. It's expected that the linker will resolve these, and mark unresolved imports as call_import (I have a patch which does this in wasmate).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250875 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
test/CodeGen/WebAssembly/import.ll [new file with mode: 0644]