summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-06-18 05:10:06 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-06-18 05:10:06 +0000
commitae7fa78e919010d6b522b1c99882362b291dc668 (patch)
tree5c305de7a9a9a80e142b24926ecfd5ed45be2fda
parentaa9f575ae16e357546810f270eedbd1b5ee6fb79 (diff)
downloadbcm5719-llvm-ae7fa78e919010d6b522b1c99882362b291dc668.tar.gz
bcm5719-llvm-ae7fa78e919010d6b522b1c99882362b291dc668.zip
LTO: Introduce LTOModule::getSymbolGV().
llvm-svn: 239993
-rw-r--r--llvm/include/llvm/LTO/LTOModule.h6
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();
OpenPOWER on IntegriCloud