[WebAssembly] Default to something reasonable in WebAssemblyAddMissingPrototypes
authorSam Clegg <sbc@chromium.org>
Thu, 21 Feb 2019 03:27:00 +0000 (03:27 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 21 Feb 2019 03:27:00 +0000 (03:27 +0000)
commit1634516e3538b9df51fd479b28ef18355a5c4a66
tree936f650878caa582566f49e895a4fab51b8b4641
parent42e229e13082a5dfb39aa43b40a8d7c75df92770
[WebAssembly] Default to something reasonable in WebAssemblyAddMissingPrototypes

Previously if we couldn't derive a prototype for a "no-prototype"
function from C we would leave it as is:

  void foo(...)

With this change we instead give is an empty signature and remove
the "no-prototype" attribute.

This fixes the current wasm waterfall test failure.

Tags: #llvm

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

llvm-svn: 354544
llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
llvm/test/CodeGen/WebAssembly/add-prototypes.ll