summaryrefslogtreecommitdiffstats
path: root/clang/AST/Type.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2007-12-13 20:47:42 +0000
committerFariborz Jahanian <fjahanian@apple.com>2007-12-13 20:47:42 +0000
commitc47dc4f5afacc12c6fb309e41e3e4ff5034bbdf0 (patch)
tree3ecffd69467cd2e523703d036486d4e3e1e3ddbf /clang/AST/Type.cpp
parentd4551fd0a4dc99802a457e17416900005416c266 (diff)
downloadbcm5719-llvm-c47dc4f5afacc12c6fb309e41e3e4ff5034bbdf0.tar.gz
bcm5719-llvm-c47dc4f5afacc12c6fb309e41e3e4ff5034bbdf0.zip
Patch to make ObjcQualifiedInterfaceType inherit ObjcInterfaceType
llvm-svn: 45014
Diffstat (limited to 'clang/AST/Type.cpp')
-rw-r--r--clang/AST/Type.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/AST/Type.cpp b/clang/AST/Type.cpp
index 4befdcb5425..b1da04b0a31 100644
--- a/clang/AST/Type.cpp
+++ b/clang/AST/Type.cpp
@@ -529,16 +529,14 @@ void FunctionTypeProto::Profile(llvm::FoldingSetNodeID &ID) {
}
void ObjcQualifiedInterfaceType::Profile(llvm::FoldingSetNodeID &ID,
- ObjcInterfaceType *interfaceType,
ObjcProtocolDecl **protocols,
unsigned NumProtocols) {
- ID.AddPointer(interfaceType);
for (unsigned i = 0; i != NumProtocols; i++)
ID.AddPointer(protocols[i]);
}
void ObjcQualifiedInterfaceType::Profile(llvm::FoldingSetNodeID &ID) {
- Profile(ID, getInterfaceType(), &Protocols[0], getNumProtocols());
+ Profile(ID, &Protocols[0], getNumProtocols());
}
/// LookThroughTypedefs - Return the ultimate type this typedef corresponds to
@@ -770,7 +768,7 @@ void ObjcQualifiedInterfaceType::getAsStringInternal(
std::string &InnerString) const {
if (!InnerString.empty()) // Prefix the basic type, e.g. 'typedefname X'.
InnerString = ' ' + InnerString;
- std::string ObjcQIString = getInterfaceType()->getDecl()->getName();
+ std::string ObjcQIString = getDecl()->getName();
ObjcQIString += '<';
int num = getNumProtocols();
for (int i = 0; i < num; i++) {
OpenPOWER on IntegriCloud