]> granicus.if.org Git - clang/commit
[WebAssembly] Add no-prototype attribute to prototype-less C functions
authorSam Clegg <sbc@chromium.org>
Mon, 25 Jun 2018 18:47:32 +0000 (18:47 +0000)
committerSam Clegg <sbc@chromium.org>
Mon, 25 Jun 2018 18:47:32 +0000 (18:47 +0000)
commitf3b7928366f63b51ffc97e74f8afcff497c57e8d
treee210ec6a44566102d9fdc07a4767eed874b9444b
parent7f4f83642fbc23380edd820247831effe53a8cb9
[WebAssembly] Add no-prototype attribute to prototype-less C functions

The WebAssembly backend in particular benefits from being
able to distinguish between varargs functions (...) and prototype-less
C functions.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335510 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInfo.cpp
test/CodeGen/no-prototype.c [new file with mode: 0644]