Skip to content
  • Chris Lattner's avatar
    Fix the third (and last known) case of code update problems due · db035a0a
    Chris Lattner authored
    to LLVM IR changes with addr label weirdness.  In the testcase, we
    generate references to the two bb's when codegen'ing the first
    function:
    
    _test1:                                 ## @test1
    	leaq	Ltmp0(%rip), %rax
    ..
    	leaq	Ltmp1(%rip), %rax
    
    Then continue to codegen the second function where the blocks
    get merged.  We're now smart enough to emit both labels, producing
    this code:
    
    _test_fun:                              ## @test_fun
    ## BB#0:                                ## %entry
    Ltmp1:                                  ## Block address taken
    Ltmp0:
    ## BB#1:                                ## %ret
    	movl	$-1, %eax
    	ret
    
    Rejoice.
    
    llvm-svn: 98595
    db035a0a
Loading