diff --git a/include/llvm/LTO/LTOModule.h b/include/llvm/LTO/LTOModule.h index 53c2b8e521b..8204e8f3ed2 100644 --- a/include/llvm/LTO/LTOModule.h +++ b/include/llvm/LTO/LTOModule.h @@ -143,6 +143,12 @@ public: return nullptr; } + const GlobalValue *getSymbolGV(uint32_t index) { + if (index < _symbols.size()) + return _symbols[index].symbol; + return nullptr; + } + /// Get the number of dependent libraries uint32_t getDependentLibraryCount() { return _deplibs.size();