summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorKen Dyck <kd@kendyck.com>2011-02-20 01:55:18 +0000
committerKen Dyck <kd@kendyck.com>2011-02-20 01:55:18 +0000
commitd24099de04ed5e8a48b1c45132cb06046eadc610 (patch)
tree0f986c6d382a22e9c78e3c317df1ab1030766926 /clang/lib/AST/ASTContext.cpp
parent1daeacbda8d74350750811e3661ad10cb72e3c9b (diff)
downloadbcm5719-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.cpp4
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());
}
OpenPOWER on IntegriCloud