forked from OSchip/llvm-project
				
			Clean up code a bit, no functionality changes.
llvm-svn: 4162
This commit is contained in:
		
							parent
							
								
									2862d2ec71
								
							
						
					
					
						commit
						ca1725d3c8
					
				| 
						 | 
					@ -120,19 +120,19 @@ void BytecodeWriter::outputConstants(bool isFunction) {
 | 
				
			||||||
    outputConstantsInPlane(Plane, ValNo);      // Write out the types
 | 
					    outputConstantsInPlane(Plane, ValNo);      // Write out the types
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  for (unsigned pno = 0; pno < NumPlanes; pno++) {
 | 
					  for (unsigned pno = 0; pno != NumPlanes; pno++) {
 | 
				
			||||||
    const std::vector<const Value*> &Plane = Table.getPlane(pno);
 | 
					    const std::vector<const Value*> &Plane = Table.getPlane(pno);
 | 
				
			||||||
    if (Plane.empty()) continue;      // Skip empty type planes...
 | 
					    if (!Plane.empty()) {             // Skip empty type planes...
 | 
				
			||||||
    
 | 
					 | 
				
			||||||
      unsigned ValNo = 0;
 | 
					      unsigned ValNo = 0;
 | 
				
			||||||
      if (isFunction)                   // Don't reemit module constants
 | 
					      if (isFunction)                   // Don't reemit module constants
 | 
				
			||||||
        ValNo = Table.getModuleLevel(pno);
 | 
					        ValNo = Table.getModuleLevel(pno);
 | 
				
			||||||
    else if (pno == Type::TypeTyID)
 | 
					      else if (pno == Type::TypeTyID) // If type plane wasn't written out above
 | 
				
			||||||
      continue;                       // Type plane was written out above
 | 
					        continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      outputConstantsInPlane(Plane, ValNo); // Write out constants in the plane
 | 
					      outputConstantsInPlane(Plane, ValNo); // Write out constants in the plane
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void BytecodeWriter::outputModuleInfoBlock(const Module *M) {
 | 
					void BytecodeWriter::outputModuleInfoBlock(const Module *M) {
 | 
				
			||||||
  BytecodeBlock ModuleInfoBlock(BytecodeFormat::ModuleGlobalInfo, Out);
 | 
					  BytecodeBlock ModuleInfoBlock(BytecodeFormat::ModuleGlobalInfo, Out);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue