Skip to content
  • Duncan Sands's avatar
    Factor code to copy global value attributes like · dd7daee8
    Duncan Sands authored
    the section or the visibility from one global
    value to another: copyAttributesFrom.  This is
    particularly useful for duplicating functions:
    previously this was done by explicitly copying
    each attribute in turn at each place where a
    new function was created out of an old one, with
    the result that obscure attributes were regularly
    forgotten (like the collector or the section).
    Hopefully now everything is uniform and nothing
    is forgotten.
    
    llvm-svn: 51567
    dd7daee8
Loading