[WebAssembly] Default to something reasonable in WebAssemblyAddMissingPrototypes
commit29c4aae301b7e2e6023f1d1db78980efe943c97c
authorSam Clegg <sbc@chromium.org>
Thu, 21 Feb 2019 03:27:00 +0000 (21 03:27 +0000)
committerSam Clegg <sbc@chromium.org>
Thu, 21 Feb 2019 03:27:00 +0000 (21 03:27 +0000)
tree3485cfa4695dd4f71cc7b070453094a6cacbfcbc
parent37bcd272bb78dc48a6b9643e45a223c6de10551c
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354544 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
test/CodeGen/WebAssembly/add-prototypes.ll