Skip to content
  • Rafael Espindola's avatar
    Change MCExpr::EvaluateAsRelocatableImpl of variables to return the original · 8c3039b6
    Rafael Espindola authored
    variable if recursing fails to simplify it.
    
    Factor AliasedSymbol to be a method of MCSymbol.
    
    Update MCAssembler::EvaluateFixup to match the change in
    EvaluateAsRelocatableImpl.
    
    Remove the WeakRefExpr hack, as the object writer now sees the weakref with
    no extra effort needed.
    
    Nothing else is using MCTargetExpr, but keep it for now.
    
    Now that the ELF writer sees relocations with aliases, handle
    
        .weak    foo2
    foo2:
        .weak    bar2
        .set    bar2,foo2
        .quad    bar2
    
    the same way gas does and produce a relocation with bar2.
    
    llvm-svn: 119152
    8c3039b6
Loading