LTO: Introduce LTOModule::getSymbolGV().

llvm-svn: 239993
This commit is contained in:
Peter Collingbourne 2015-06-18 05:10:06 +00:00
parent aa9f575ae1
commit ae7fa78e91
1 changed files with 6 additions and 0 deletions

View File

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