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. llvm-svn: 352946
Showing
- clang/include/clang/CodeGen/CGFunctionInfo.h 15 additions, 16 deletionsclang/include/clang/CodeGen/CGFunctionInfo.h
- clang/include/clang/CodeGen/CodeGenABITypes.h 1 addition, 2 deletionsclang/include/clang/CodeGen/CodeGenABITypes.h
- clang/lib/CodeGen/CGCUDANV.cpp 1 addition, 1 deletionclang/lib/CodeGen/CGCUDANV.cpp
- clang/lib/CodeGen/CGCall.cpp 12 additions, 16 deletionsclang/lib/CodeGen/CGCall.cpp
- clang/lib/CodeGen/CGExprCXX.cpp 2 additions, 3 deletionsclang/lib/CodeGen/CGExprCXX.cpp
- clang/lib/CodeGen/CGVTables.cpp 1 addition, 1 deletionclang/lib/CodeGen/CGVTables.cpp
- clang/lib/CodeGen/CodeGenABITypes.cpp 3 additions, 4 deletionsclang/lib/CodeGen/CodeGenABITypes.cpp
- clang/lib/CodeGen/CodeGenModule.cpp 2 additions, 4 deletionsclang/lib/CodeGen/CodeGenModule.cpp
- clang/lib/CodeGen/CodeGenTypes.cpp 3 additions, 4 deletionsclang/lib/CodeGen/CodeGenTypes.cpp
- clang/lib/CodeGen/CodeGenTypes.h 4 additions, 10 deletionsclang/lib/CodeGen/CodeGenTypes.h
Loading
Please register or sign in to comment