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 | d24099de04ed5e8a48b1c45132cb06046eadc610 (patch) | |
| tree | 0f986c6d382a22e9c78e3c317df1ab1030766926 /clang/lib/AST/ASTContext.cpp | |
| parent | 1daeacbda8d74350750811e3661ad10cb72e3c9b (diff) | |
| download | bcm5719-llvm-d24099de04ed5e8a48b1c45132cb06046eadc610.tar.gz bcm5719-llvm-d24099de04ed5e8a48b1c45132cb06046eadc610.zip | |
Add const qualifier to getTypeInfoInChars().
llvm-svn: 126064
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 7da2f348439..50c295f241f 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/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()); } |

