[PATCH] D48241: [DebugInfo] Emit ObjC methods as part of interface.
Adrian Prantl via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 26 08:59:29 PDT 2018
aprantl added inline comments.
================
Comment at: lib/CodeGen/CGDebugInfo.cpp:4246
+ if (it == TypeCache.end())
+ continue;
+
----------------
What does it mean that a type is not being found in the cache here?
================
Comment at: lib/CodeGen/CGDebugInfo.h:102
+ struct ObjCMethodCacheEntry {
+ const ObjCMethodDecl *MD;
+ llvm::DISubprogram *DIMethodDecl;
----------------
The field naming scheme in this struct is not very consistent :-)
================
Comment at: test/CodeGenObjC/debug-info-category.m:45
+// CHECK: = distinct !DISubprogram(name: "-[Foo integer:]"{{.*}}isDefinition: true
+// CHECK: = distinct !DISubprogram(name: "-[Foo(Bar) add:]"{{.*}}isDefinition: true
----------------
perhaps also add a class method and a category to the test case?
https://reviews.llvm.org/D48241
More information about the cfe-commits
mailing list