mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user