summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ELFWriter.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/ELFWriter.h')
-rw-r--r--llvm/lib/CodeGen/ELFWriter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/ELFWriter.h b/llvm/lib/CodeGen/ELFWriter.h
index 34f82766c58..6f083b925ae 100644
--- a/llvm/lib/CodeGen/ELFWriter.h
+++ b/llvm/lib/CodeGen/ELFWriter.h
@@ -211,6 +211,11 @@ namespace llvm {
unsigned getGlobalELFVisibility(const GlobalValue *GV);
unsigned getElfSectionFlags(unsigned Flags);
+ // setGlobalSymLookup - Set global value 'GV' with 'Index' in the lookup map
+ void setGlobalSymLookup(const GlobalValue *GV, unsigned Index) {
+ GblSymLookup[GV] = Index;
+ }
+
// As we complete the ELF file, we need to update fields in the ELF header
// (e.g. the location of the section table). These members keep track of
// the offset in ELFHeader of these various pieces to update and other
OpenPOWER on IntegriCloud