]> granicus.if.org Git - clang/commit
[mips] Defer va_arg expansion to the backend.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 1 Aug 2014 10:29:21 +0000 (10:29 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 1 Aug 2014 10:29:21 +0000 (10:29 +0000)
commit06d81dbad5c0c6d50141b5ade1a47def1bf4a9f4
tree21e66b6b66c2a72a35297b19012758ffd1218777
parent5774697c0f5e2fc9ef906c3e291d76c3b32b6828
[mips] Defer va_arg expansion to the backend.

Summary:
This patch causes clang to emit va_arg instructions to the backend instead of
expanding them into an implementation itself. The backend already implements
va_arg since this is necessary for NaCl so this patch is removing redundant
code.

Together with the llvm patch (D4556) that accounts for the effect of endianness
on the expansion of va_arg, this fixes PR19612.

Depends on D4556

Reviewers: sstankovic, dsanders

Reviewed By: dsanders

Subscribers: rnk, cfe-commits

Differential Revision: http://reviews.llvm.org/D4742

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