diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2015-06-18 05:10:06 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2015-06-18 05:10:06 +0000 |
| commit | ae7fa78e919010d6b522b1c99882362b291dc668 (patch) | |
| tree | 5c305de7a9a9a80e142b24926ecfd5ed45be2fda | |
| parent | aa9f575ae16e357546810f270eedbd1b5ee6fb79 (diff) | |
| download | bcm5719-llvm-ae7fa78e919010d6b522b1c99882362b291dc668.tar.gz bcm5719-llvm-ae7fa78e919010d6b522b1c99882362b291dc668.zip | |
LTO: Introduce LTOModule::getSymbolGV().
llvm-svn: 239993
| -rw-r--r-- | llvm/include/llvm/LTO/LTOModule.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/LTO/LTOModule.h b/llvm/include/llvm/LTO/LTOModule.h index 53c2b8e521b..8204e8f3ed2 100644 --- a/llvm/include/llvm/LTO/LTOModule.h +++ b/llvm/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(); |

