diff --git a/rocclr/runtime/device/devprogram.cpp b/rocclr/runtime/device/devprogram.cpp index 79a8476f0f..634b5a5b3a 100644 --- a/rocclr/runtime/device/devprogram.cpp +++ b/rocclr/runtime/device/devprogram.cpp @@ -3178,6 +3178,14 @@ bool Program::getSymbolsFromCodeObj(std::vector* var_names, amd_com } #endif /* USE_COMGR_LIBRARY */ +bool Program::getFuncsFromCodeObj(std::vector* func_names) const { +#if defined(USE_COMGR_LIBRARY) + return getSymbolsFromCodeObj(func_names, AMD_COMGR_SYMBOL_TYPE_FUNC); +#else + return true; +#endif +} + bool Program::getGlobalVarFromCodeObj(std::vector* var_names) const { #if defined(USE_COMGR_LIBRARY) return getSymbolsFromCodeObj(var_names, AMD_COMGR_SYMBOL_TYPE_OBJECT); diff --git a/rocclr/runtime/device/devprogram.hpp b/rocclr/runtime/device/devprogram.hpp index 6710f865ad..37c805eabb 100644 --- a/rocclr/runtime/device/devprogram.hpp +++ b/rocclr/runtime/device/devprogram.hpp @@ -240,6 +240,7 @@ class Program : public amd::HeapObject { //! Check if SRAM ECC is enable const bool sramEccEnable() const { return (sramEccEnabled_ == 1); } + bool getFuncsFromCodeObj(std::vector* func_names) const; bool getGlobalVarFromCodeObj(std::vector* var_names) const; bool getUndefinedVarFromCodeObj(std::vector* var_names) const;