forked from OSchip/llvm-project
				
			
							parent
							
								
									e8fdcac02c
								
							
						
					
					
						commit
						d50e5eb8c3
					
				| 
						 | 
				
			
			@ -55,8 +55,8 @@ FunctionPass *llvm::createRegisterAllocator(CodeGenOpt::Level OptLevel) {
 | 
			
		|||
    RegisterRegAlloc::setDefault(RegAlloc);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // This forces linking of the greedy register allocator, so -regalloc=greedy
 | 
			
		||||
  // works in clang.
 | 
			
		||||
  // This forces linking of the linear scan register allocator,
 | 
			
		||||
  // so -regalloc=linearscan still works in clang.
 | 
			
		||||
  if (Ctor == createLinearScanRegisterAllocator)
 | 
			
		||||
    return createLinearScanRegisterAllocator();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue