Recognize C++0x rvalue references.

This commit is contained in:
Roberto Raggi
2010-03-23 12:11:33 +01:00
parent 21c13328d3
commit 4b8d597196
13 changed files with 46 additions and 20 deletions

View File

@@ -307,9 +307,9 @@ public:
return pointerTypes.intern(PointerType(elementType));
}
ReferenceType *findOrInsertReferenceType(const FullySpecifiedType &elementType)
ReferenceType *findOrInsertReferenceType(const FullySpecifiedType &elementType, bool rvalueRef)
{
return referenceTypes.intern(ReferenceType(elementType));
return referenceTypes.intern(ReferenceType(elementType, rvalueRef));
}
ArrayType *findOrInsertArrayType(const FullySpecifiedType &elementType, unsigned size)
@@ -648,8 +648,8 @@ PointerToMemberType *Control::pointerToMemberType(const Name *memberName, const
PointerType *Control::pointerType(const FullySpecifiedType &elementType)
{ return d->findOrInsertPointerType(elementType); }
ReferenceType *Control::referenceType(const FullySpecifiedType &elementType)
{ return d->findOrInsertReferenceType(elementType); }
ReferenceType *Control::referenceType(const FullySpecifiedType &elementType, bool rvalueRef)
{ return d->findOrInsertReferenceType(elementType, rvalueRef); }
ArrayType *Control::arrayType(const FullySpecifiedType &elementType, unsigned size)
{ return d->findOrInsertArrayType(elementType, size); }