diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-28 13:45:00 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-28 13:45:00 +0000 |
commit | a80e1181b78183dc36ec6568559d38faa86981f0 (patch) | |
tree | 88ca9bd2f28f363e50add28297f6220ac8e09fc1 /lib/Bytecode/Reader/Reader.h | |
parent | 44b2c5098f5cf766b4eff43d9eb0d8a9a143e7d8 (diff) |
Implement review feedback. Aliasees can be either GlobalValue's or
bitcasts of them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Reader.h')
-rw-r--r-- | lib/Bytecode/Reader/Reader.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Bytecode/Reader/Reader.h b/lib/Bytecode/Reader/Reader.h index c852cce6ba..95cf58c2b3 100644 --- a/lib/Bytecode/Reader/Reader.h +++ b/lib/Bytecode/Reader/Reader.h @@ -129,6 +129,9 @@ public: /// them. typedef std::vector<std::pair<GlobalVariable*, unsigned> > GlobalInitsList; + /// @brief A list of global aliases and the slot number for constant aliasees + typedef std::vector<std::pair<GlobalAlias*, unsigned> > AliaseeList; + /// This type maps a typeslot/valueslot pair to the corresponding Value*. /// It is used for dealing with forward references as values are read in. /// @brief A map for dealing with forward references of values. @@ -338,6 +341,12 @@ private: /// of what we must do. GlobalInitsList GlobalInits; + /// Constant values are read in after global aliases. Because of this, we must + /// defer setting the constant aliasees until after module level constants + /// have been read. In the mean time, this list keeps track of what we must + /// do. + AliaseeList Aliasees; + // For lazy reading-in of functions, we need to save away several pieces of // information about each function: its begin and end pointer in the buffer // and its FunctionSlot. |