OSDN Git Service

Object: Simplify the IRObjectFile symbol iterator implementation.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 24 Nov 2016 00:41:05 +0000 (00:41 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 24 Nov 2016 00:41:05 +0000 (00:41 +0000)
commit4384b55c02374481b6851b845aa06a1a228aaee1
treefd122bc89dfd1ea2a5b7ed0f8d14c25dbef34679
parenta5a179ffd94fd4136df461ec76fb30f04afa87ce
Object: Simplify the IRObjectFile symbol iterator implementation.

Change the IRObjectFile symbol iterator to be a pointer into a vector of
PointerUnions representing either IR symbols or asm symbols.

This change is in preparation for a future change for supporting multiple
modules in an IRObjectFile. Although it causes an increase in memory
consumption, we can deal with that issue separately by introducing a bitcode
symbol table.

Differential Revision: https://reviews.llvm.org/D26928

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287845 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/IRObjectFile.h
lib/Object/IRObjectFile.cpp