[llvm-commits] [llvm-gcc-4.2] r70258 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp

Bill Wendling isanbard at gmail.com
Mon Apr 27 14:58:49 PDT 2009


Author: void
Date: Mon Apr 27 16:58:49 2009
New Revision: 70258

URL: http://llvm.org/viewvc/llvm-project?rev=70258&view=rev
Log:
Set the linkage type for the new GV as well.

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=70258&r1=70257&r2=70258&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Mon Apr 27 16:58:49 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-commits mailing list