oilgen: add check for drgn_type_has_name

This commit is contained in:
Jake Hillion 2023-02-22 10:33:18 -08:00 committed by Jake Hillion
parent 39e19a9c47
commit febcea4928

View File

@ -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)});
}