summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2016-01-27 20:00:32 +0000
committerManman Ren <manman.ren@gmail.com>2016-01-27 20:00:32 +0000
commitefe1bacd92a315b74f526f21419559dac93738ab (patch)
treebacf012a55516f7855d71873fb7bc44072456c39 /clang/lib/CodeGen/CGDebugInfo.cpp
parent95b533fe4b5a2603f11a6c967319d4ab0ef865ff (diff)
downloadbcm5719-llvm-efe1bacd92a315b74f526f21419559dac93738ab.tar.gz
bcm5719-llvm-efe1bacd92a315b74f526f21419559dac93738ab.zip
Class Property: handle class properties.
At places where we handle instance properties, if necessary. rdar://23891898 llvm-svn: 258979
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 6d19e50e9f7..675b5eb07c5 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1822,11 +1822,11 @@ llvm::DIType *CGDebugInfo::CreateTypeDefinition(const ObjCInterfaceType *Ty,
{
llvm::SmallPtrSet<const IdentifierInfo*, 16> PropertySet;
for (const ObjCCategoryDecl *ClassExt : ID->known_extensions())
- for (auto *PD : ClassExt->instance_properties()) {
+ for (auto *PD : ClassExt->properties()) {
PropertySet.insert(PD->getIdentifier());
AddProperty(PD);
}
- for (const auto *PD : ID->instance_properties()) {
+ for (const auto *PD : ID->properties()) {
// Don't emit duplicate metadata for properties that were already in a
// class extension.
if (!PropertySet.insert(PD->getIdentifier()).second)
OpenPOWER on IntegriCloud