[llvm-commits] [PATCH] Lazily Link functions

Peter Collingbourne peter at pcc.me.uk
Sun Oct 30 10:53:25 PDT 2011


On Wed, Oct 26, 2011 at 04:26:27PM -0700, Tanya Lattner wrote:
> @@ -449,7 +452,7 @@
>    bool SrcIsDeclaration = Src->isDeclaration();
>    bool DestIsDeclaration = Dest->isDeclaration();
>    
> -  if (SrcIsDeclaration) {
> +  if (SrcIsDeclaration && !Src->isMaterializable()) {
>      // If Src is external or if both Src & Dest are external..  Just link the
>      // external globals, we aren't adding anything.
>      if (Src->hasDLLImportLinkage()) {

FYI, I committed a slightly modified version of this part of your
patch as r143316.

Thanks,
-- 
Peter



More information about the llvm-commits mailing list