diff options
author | dim <dim@FreeBSD.org> | 2015-06-21 14:00:56 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-06-21 14:00:56 +0000 |
commit | 9dd834653b811ad20382e98a87dff824980c9916 (patch) | |
tree | a764184c2fc9486979b074250b013a0937ee64e5 /lib/AST/ASTContext.cpp | |
parent | bb9760db9b86e93a638ed430d0a14785f7ff9064 (diff) | |
download | FreeBSD-src-9dd834653b811ad20382e98a87dff824980c9916.zip FreeBSD-src-9dd834653b811ad20382e98a87dff824980c9916.tar.gz |
Vendor import of clang trunk r240225:
https://llvm.org/svn/llvm-project/cfe/trunk@240225
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 4a831d9..049eebd 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -5610,8 +5610,7 @@ void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string& S, // @encode(class_name) ObjCInterfaceDecl *OI = OIT->getDecl(); S += '{'; - const IdentifierInfo *II = OI->getIdentifier(); - S += II->getName(); + S += OI->getObjCRuntimeNameAsString(); S += '='; SmallVector<const ObjCIvarDecl*, 32> Ivars; DeepCollectObjCIvars(OI, true, Ivars); @@ -5654,7 +5653,7 @@ void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string& S, S += '"'; for (const auto *I : OPT->quals()) { S += '<'; - S += I->getNameAsString(); + S += I->getObjCRuntimeNameAsString(); S += '>'; } S += '"'; @@ -5678,7 +5677,7 @@ void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string& S, for (unsigned i = 0, e = Ivars.size(); i != e; ++i) { if (cast<FieldDecl>(Ivars[i]) == FD) { S += '{'; - S += OI->getIdentifier()->getName(); + S += OI->getObjCRuntimeNameAsString(); S += '}'; return; } @@ -5696,10 +5695,10 @@ void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string& S, if (OPT->getInterfaceDecl() && (FD || EncodingProperty || EncodeClassNames)) { S += '"'; - S += OPT->getInterfaceDecl()->getIdentifier()->getName(); + S += OPT->getInterfaceDecl()->getObjCRuntimeNameAsString(); for (const auto *I : OPT->quals()) { S += '<'; - S += I->getNameAsString(); + S += I->getObjCRuntimeNameAsString(); S += '>'; } S += '"'; |