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:
Spruit, Neil R
2023-07-06 01:30:17 +00:00
committed by Compute-Runtime-Automation
parent 6205cca038
commit 11c96559a9

View File

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