Make FieldDecl parameter to getObjCEncodingForType... const.

llvm-svn: 69578
This commit is contained in:
Daniel Dunbar 2009-04-20 06:37:24 +00:00
parent 3070210377
commit c040ce459c
2 changed files with 6 additions and 6 deletions

View File

@ -378,7 +378,7 @@ public:
/// given type into \arg S. If \arg NameFields is specified then
/// record field names are also encoded.
void getObjCEncodingForType(QualType t, std::string &S,
FieldDecl *Field=NULL);
const FieldDecl *Field=0);
void getLegacyIntegralTypeEncoding(QualType &t) const;
@ -730,7 +730,7 @@ private:
void getObjCEncodingForTypeImpl(QualType t, std::string &S,
bool ExpandPointedToStructures,
bool ExpandStructures,
FieldDecl *Field,
const FieldDecl *Field,
bool OutermostType = false,
bool EncodingProperty = false);

View File

@ -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()) {