forked from OSchip/llvm-project
Add const qualifier to getTypeInfoInChars().
llvm-svn: 126064
This commit is contained in:
parent
1daeacbda8
commit
d24099de04
|
@ -1042,8 +1042,8 @@ public:
|
|||
CharUnits getTypeAlignInChars(QualType T) const;
|
||||
CharUnits getTypeAlignInChars(const Type *T) const;
|
||||
|
||||
std::pair<CharUnits, CharUnits> getTypeInfoInChars(const Type *T);
|
||||
std::pair<CharUnits, CharUnits> getTypeInfoInChars(QualType T);
|
||||
std::pair<CharUnits, CharUnits> getTypeInfoInChars(const Type *T) const;
|
||||
std::pair<CharUnits, CharUnits> getTypeInfoInChars(QualType T) const;
|
||||
|
||||
/// getPreferredTypeAlign - Return the "preferred" alignment of the specified
|
||||
/// type for the current target in bits. This can be different than the ABI
|
||||
|
|
|
@ -652,14 +652,14 @@ CharUnits ASTContext::getDeclAlign(const Decl *D, bool RefAsPointee) const {
|
|||
}
|
||||
|
||||
std::pair<CharUnits, CharUnits>
|
||||
ASTContext::getTypeInfoInChars(const Type *T) {
|
||||
ASTContext::getTypeInfoInChars(const Type *T) const {
|
||||
std::pair<uint64_t, unsigned> Info = getTypeInfo(T);
|
||||
return std::make_pair(toCharUnitsFromBits(Info.first),
|
||||
toCharUnitsFromBits(Info.second));
|
||||
}
|
||||
|
||||
std::pair<CharUnits, CharUnits>
|
||||
ASTContext::getTypeInfoInChars(QualType T) {
|
||||
ASTContext::getTypeInfoInChars(QualType T) const {
|
||||
return getTypeInfoInChars(T.getTypePtr());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue