[llvm] [llvm][dwarfdump] Show name of referenced DW_TAG_APPLE_property (PR #165537)
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 30 13:29:37 PDT 2025
================
@@ -129,6 +129,25 @@ prettyLanguageVersionString(const DWARFAttribute &AttrValue,
static_cast<SourceLanguageName>(*LName), *LVersion);
}
+static llvm::Expected<llvm::StringRef>
+getApplePropertyName(const DWARFDie &PropDIE) {
+ if (!PropDIE)
+ return llvm::createStringError("invalid DIE");
+
+ if (PropDIE.getTag() != DW_TAG_APPLE_property)
+ return llvm::createStringError("referencing not a DW_TAG_APPLE_property");
----------------
JDevlieghere wrote:
nit:
```suggestion
return llvm::createStringError("not referencing a DW_TAG_APPLE_property");
```
https://github.com/llvm/llvm-project/pull/165537
More information about the llvm-commits
mailing list