]> granicus.if.org Git - llvm/commit
[WebAssembly] Define the signature for __stack_chk_fail
authorDan Gohman <dan433584@gmail.com>
Mon, 29 Apr 2019 21:09:44 +0000 (21:09 +0000)
committerDan Gohman <dan433584@gmail.com>
Mon, 29 Apr 2019 21:09:44 +0000 (21:09 +0000)
commit4f53d5f4e7d58b6dcaae045884b91f5c5695a481
treea5ff9f40dc46eda40c21ec319bc7057179a660f3
parent076a39af9965a660643b87661b70801010a4b866
[WebAssembly] Define the signature for __stack_chk_fail

The WebAssembly backend needs to know the signatures of all runtime
libcall functions. This adds the signature for __stack_chk_fail which was
previously missing.

Also, make the error message for a missing libcall include the name of
the function.

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

Reviewed By: sbc100

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