projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e520b70
)
LTO: Introduce LTOModule::getSymbolGV().
author
Peter Collingbourne
<peter@pcc.me.uk>
Thu, 18 Jun 2015 05:10:06 +0000
(
05:10
+0000)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Thu, 18 Jun 2015 05:10:06 +0000
(
05:10
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239993
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/LTO/LTOModule.h
patch
|
blob
|
history
diff --git
a/include/llvm/LTO/LTOModule.h
b/include/llvm/LTO/LTOModule.h
index 53c2b8e521be38f790835c9c18185e2209dad67d..8204e8f3ed2fc4ab652bd0feaee6e2f00697c278 100644
(file)
--- 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();