[llvm] r239993 - LTO: Introduce LTOModule::getSymbolGV().
Peter Collingbourne
peter at pcc.me.uk
Wed Jun 17 22:10:06 PDT 2015
Author: pcc
Date: Thu Jun 18 00:10:06 2015
New Revision: 239993
URL: http://llvm.org/viewvc/llvm-project?rev=239993&view=rev
Log:
LTO: Introduce LTOModule::getSymbolGV().
Modified:
llvm/trunk/include/llvm/LTO/LTOModule.h
Modified: llvm/trunk/include/llvm/LTO/LTOModule.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/LTO/LTOModule.h?rev=239993&r1=239992&r2=239993&view=diff
==============================================================================
--- llvm/trunk/include/llvm/LTO/LTOModule.h (original)
+++ llvm/trunk/include/llvm/LTO/LTOModule.h Thu Jun 18 00:10:06 2015
@@ -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();
More information about the llvm-commits
mailing list