[llvm-branch-commits] [llvm-branch] r134467 - /llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp

Chris Lattner sabre at nondot.org
Tue Jul 5 22:57:07 PDT 2011


Author: lattner
Date: Wed Jul  6 00:57:07 2011
New Revision: 134467

URL: http://llvm.org/viewvc/llvm-project?rev=134467&view=rev
Log:
when linking a global variable in, preserve the __thread bit!

Modified:
    llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp

Modified: llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp?rev=134467&r1=134466&r2=134467&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp (original)
+++ llvm/branches/type-system-rewrite/lib/Linker/LinkModules.cpp Wed Jul  6 00:57:07 2011
@@ -589,7 +589,7 @@
     GlobalVariable *NewDGV =
       new GlobalVariable(*DstM, TypeMap.get(SGV->getType()->getElementType()),
                          SGV->isConstant(), SGV->getLinkage(), /*init*/0,
-                         SGV->getName(), 0, false,
+                         SGV->getName(), 0, SGV->isThreadLocal(),
                          SGV->getType()->getAddressSpace());
     // Propagate alignment, visibility and section info.
     CopyGVAttributes(NewDGV, SGV);





More information about the llvm-branch-commits mailing list