[PATCH] D18536: Preserve extern_weak linkage in CloneModule.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 30 18:25:06 PDT 2016


pcc added inline comments.

================
Comment at: lib/Transforms/Utils/CloneModule.cpp:125-126
@@ -124,1 +124,4 @@
   for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++I) {
+    if (I->isDeclaration())
+      continue;
+
----------------
Shouldn't we also do this for global variables?


Repository:
  rL LLVM

http://reviews.llvm.org/D18536





More information about the llvm-commits mailing list