[llvm-commits] CVS: llvm/lib/Transforms/Utils/CloneModule.cpp

Lauro Ramos Venancio lauro.venancio at gmail.com
Thu Apr 12 11:33:33 PDT 2007



Changes in directory llvm/lib/Transforms/Utils:

CloneModule.cpp updated: 1.23 -> 1.24
---
Log message:

Implement the "thread_local" keyword.


---
Diffs of the changes:  (+2 -0)

 CloneModule.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/Transforms/Utils/CloneModule.cpp
diff -u llvm/lib/Transforms/Utils/CloneModule.cpp:1.23 llvm/lib/Transforms/Utils/CloneModule.cpp:1.24
--- llvm/lib/Transforms/Utils/CloneModule.cpp:1.23	Mon Feb  5 14:47:20 2007
+++ llvm/lib/Transforms/Utils/CloneModule.cpp	Thu Apr 12 13:32:50 2007
@@ -80,6 +80,8 @@
       GV->setInitializer(cast<Constant>(MapValue(I->getInitializer(),
                                                  ValueMap)));
     GV->setLinkage(I->getLinkage());
+    GV->setThreadLocal(I->isThreadLocal());
+    GV->setConstant(I->isConstant());
   }
 
   // Similarly, copy over function bodies now...






More information about the llvm-commits mailing list