summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-20 06:37:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-20 06:37:24 +0000
commitc040ce459c1bc659d0e8acc871c391d340019c02 (patch)
tree7dc627d5e545574395e58eebd9a6a2c377062d07 /clang/lib
parent3070210377d2830d2736d042bb7c4f06596a9147 (diff)
downloadbcm5719-llvm-c040ce459c1bc659d0e8acc871c391d340019c02.tar.gz
bcm5719-llvm-c040ce459c1bc659d0e8acc871c391d340019c02.zip
Make FieldDecl parameter to getObjCEncodingForType... const.
llvm-svn: 69578
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/ASTContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 63d88b2ec73..48d9fe4ea9b 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -2166,7 +2166,7 @@ void ASTContext::getObjCEncodingForPropertyDecl(const ObjCPropertyDecl *PD,
// Encode result type.
// GCC has some special rules regarding encoding of properties which
// closely resembles encoding of ivars.
- getObjCEncodingForTypeImpl(PD->getType(), S, true, true, NULL,
+ getObjCEncodingForTypeImpl(PD->getType(), S, true, true, 0,
true /* outermost type */,
true /* encoding for property */);
@@ -2227,7 +2227,7 @@ void ASTContext::getLegacyIntegralTypeEncoding (QualType &PointeeTy) const {
}
void ASTContext::getObjCEncodingForType(QualType T, std::string& S,
- FieldDecl *Field) {
+ const FieldDecl *Field) {
// We follow the behavior of gcc, expanding structures which are
// directly pointed to, and expanding embedded structures. Note that
// these rules are sufficient to prevent recursive encoding of the
@@ -2237,7 +2237,7 @@ void ASTContext::getObjCEncodingForType(QualType T, std::string& S,
}
static void EncodeBitField(const ASTContext *Context, std::string& S,
- FieldDecl *FD) {
+ const FieldDecl *FD) {
const Expr *E = FD->getBitWidth();
assert(E && "bitfield width not there - getObjCEncodingForTypeImpl");
ASTContext *Ctx = const_cast<ASTContext*>(Context);
@@ -2249,7 +2249,7 @@ static void EncodeBitField(const ASTContext *Context, std::string& S,
void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string& S,
bool ExpandPointedToStructures,
bool ExpandStructures,
- FieldDecl *FD,
+ const FieldDecl *FD,
bool OutermostType,
bool EncodingProperty) {
if (const BuiltinType *BT = T->getAsBuiltinType()) {
OpenPOWER on IntegriCloud