diff options
author | Ken Dyck <kd@kendyck.com> | 2011-02-20 01:55:18 +0000 |
---|---|---|
committer | Ken Dyck <kd@kendyck.com> | 2011-02-20 01:55:18 +0000 |
commit | bee5a79fc95e3003d755031e3d2bb4410a71e1c1 (patch) | |
tree | 7e9791a53b6eea3025c457c699d35512c0d77f88 /lib/AST/ASTContext.cpp | |
parent | 26ed5f1b0df3e2bf7ec4715c2c3afd26408ff1b7 (diff) |
Add const qualifier to getTypeInfoInChars().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 7da2f34843..50c295f241 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -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()); } |