[llvm-commits] [llvm] r128501 - /llvm/trunk/lib/Linker/LinkModules.cpp
Nick Lewycky
nicholas at mxc.ca
Tue Mar 29 21:30:08 PDT 2011
Bill Wendling wrote:
> Author: void
> Date: Tue Mar 29 18:05:41 2011
> New Revision: 128501
>
> URL: http://llvm.org/viewvc/llvm-project?rev=128501&view=rev
> Log:
> We need to copy over the unnamed_addr attribute.
Oh hey! I was just wondering why I didn't see the unnamed_addr attribute
show up anywhere! Thanks Bill!
Nick
>
> Modified:
> llvm/trunk/lib/Linker/LinkModules.cpp
>
> Modified: llvm/trunk/lib/Linker/LinkModules.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=128501&r1=128500&r2=128501&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Linker/LinkModules.cpp (original)
> +++ llvm/trunk/lib/Linker/LinkModules.cpp Tue Mar 29 18:05:41 2011
> @@ -352,6 +352,7 @@
> unsigned Alignment = std::max(DestGV->getAlignment(), SrcGV->getAlignment());
> DestGV->copyAttributesFrom(SrcGV);
> DestGV->setAlignment(Alignment);
> + DestGV->setUnnamedAddr(SrcGV->hasUnnamedAddr());
> }
>
> /// GetLinkageResult - This analyzes the two global values and determines what
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list