]> granicus.if.org Git - clang/commit
Remove redundant FunctionDecl argument from a couple functions.
authorJames Y Knight <jyknight@google.com>
Sat, 2 Feb 2019 01:48:23 +0000 (01:48 +0000)
committerJames Y Knight <jyknight@google.com>
Sat, 2 Feb 2019 01:48:23 +0000 (01:48 +0000)
commit2982a888ff92fd8c21872a3cfa27db21edb06e39
treec768dd3751bfe3c1af417ba3b847103b42eb1282
parent47571176b5d5955cf8e828250d475b230e56c0ef
Remove redundant FunctionDecl argument from a couple functions.

This argument was added in r254554 in order to support the
pass_object_size attribute. However, in r296076, the attribute's
presence is now also represented in FunctionProtoType's
ExtParameterInfo, and thus it's unnecessary to pass along a separate
FunctionDecl.

The functions modified are:
 RequiredArgs::forPrototype{,Plus}, and
 CodeGenTypes::ConvertFunctionType.

After this, it's also (again) unnecessary to have a separate
ConvertFunctionType function ConvertType, so convert callers back to
the latter, leaving the former as an internal helper function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352946 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/CodeGen/CGFunctionInfo.h
include/clang/CodeGen/CodeGenABITypes.h
lib/CodeGen/CGCUDANV.cpp
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CGVTables.cpp
lib/CodeGen/CodeGenABITypes.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenTypes.cpp
lib/CodeGen/CodeGenTypes.h