mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
fix: Use Symbols map to report exported symbols vs external functions
Related-To: LOCI-4578 - Report all symbols in the Symbols Map for a Module as the Exported symbols instead of using the External Functions Program Info. - Resolves the issue of reporting symbols for platforms that don't have ZEBIN binaries by default. Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6205cca038
commit
11c96559a9
@@ -1155,13 +1155,11 @@ ze_result_t ModuleImp::inspectLinkage(
|
||||
std::vector<std::string> exportedSymbolLogMessages;
|
||||
std::stringstream logMessage;
|
||||
|
||||
auto &programInfo = moduleId->translationUnit->programInfo;
|
||||
|
||||
// Add External Functions to the Exported Symbols Log
|
||||
for (auto externalFunction : programInfo.externalFunctions) {
|
||||
// Add All Reported Symbols as Exported Symbols
|
||||
for (auto const &symbolIt : moduleId->symbols) {
|
||||
logMessage.clear();
|
||||
logMessage << "Module <" << moduleId << ">: "
|
||||
<< " Exported Symbol <" << externalFunction.functionName << ">"
|
||||
<< " Exported Symbol <" << symbolIt.first << ">"
|
||||
<< "\n";
|
||||
exportedSymbolLogMessages.push_back(logMessage.str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user