[llvm-branch-commits] [llvm-gcc-branch] r69195 - /llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp

Bill Wendling isanbard at gmail.com
Wed Apr 15 11:33:41 PDT 2009


Author: void
Date: Wed Apr 15 13:33:41 2009
New Revision: 69195

URL: http://llvm.org/viewvc/llvm-project?rev=69195&view=rev
Log:
Also pass on the linkage information.

Modified:
    llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp

Modified: llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp?rev=69195&r1=69194&r2=69195&view=diff

==============================================================================
--- llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp Wed Apr 15 13:33:41 2009
@@ -1200,6 +1200,7 @@
     NGV->setVisibility(GV->getVisibility());
     NGV->setSection(GV->getSection());
     NGV->setAlignment(GV->getAlignment());
+    NGV->setLinkage(GV->getLinkage());
     GV->replaceAllUsesWith(TheFolder->CreateBitCast(NGV, GV->getType()));
     changeLLVMConstant(GV, NGV);
     delete GV;





More information about the llvm-branch-commits mailing list