[AST] Change return type of getTypeInfoInChars to a proper struct instead of std...
authorBevin Hansson <bevin.hansson@ericsson.com>
Mon, 24 Aug 2020 08:19:29 +0000 (10:19 +0200)
committerBevin Hansson <bevin.hansson@ericsson.com>
Tue, 13 Oct 2020 11:26:56 +0000 (13:26 +0200)
commit101309fe048e66873cfd972c47c4b7e7f2b99f41
tree3d1df982e1401303365279cbc142108029226c8e
parent9fa7f48459761fa13205f4c931484b0977c35746
[AST] Change return type of getTypeInfoInChars to a proper struct instead of std::pair.

Followup to D85191.

This changes getTypeInfoInChars to return a TypeInfoChars
struct instead of a std::pair of CharUnits. This lets the
interface match getTypeInfo more closely.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D86447
14 files changed:
clang/include/clang/AST/ASTContext.h
clang/lib/AST/ASTContext.cpp
clang/lib/AST/RecordLayoutBuilder.cpp
clang/lib/CodeGen/CGAtomic.cpp
clang/lib/CodeGen/CGBlocks.cpp
clang/lib/CodeGen/CGCUDANV.cpp
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGClass.cpp
clang/lib/CodeGen/CGExprAgg.cpp
clang/lib/CodeGen/CGObjC.cpp
clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
clang/lib/CodeGen/CGValue.h
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/StaticAnalyzer/Checkers/PaddingChecker.cpp