mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
oilgen: add check for drgn_type_has_name
This commit is contained in:
parent
39e19a9c47
commit
febcea4928
@ -111,7 +111,11 @@ OIGenerator::findOilTypesAndNames(drgnplusplus::program& prog) {
|
||||
throw err;
|
||||
}
|
||||
|
||||
LOG(INFO) << "found OIL type: " << drgn_type_name(paramType.type);
|
||||
if (drgn_type_has_name(paramType.type)) {
|
||||
LOG(INFO) << "found OIL type: " << drgn_type_name(paramType.type);
|
||||
} else {
|
||||
LOG(INFO) << "found OIL type: (no name)";
|
||||
}
|
||||
out.push_back({paramType, std::move(weakLinkageName)});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user