[PATCH] D19527: LTOCodeGenerator: add linkonce to llvm.used when in "MustPreserve" set

David Callahan via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 08:34:40 PDT 2016


david2050 added a subscriber: david2050.

================
Comment at: lib/LTO/LTOCodeGenerator.cpp:394
@@ +393,3 @@
+  if (ScopeRestrictionsDone)
+
+    // Declare a callback for the internalize pass that will ask for every
----------------
Is there a missing return here?

================
Comment at: test/tools/lto/hide-linkonce-odr.ll:5
@@ -4,3 +4,3 @@
 ; RUN: llvm-dis %t.dylib.lto.opt.bc -o - | FileCheck --check-prefix=IR %s
-; check that @a is still a linkonce_odr definition
-; IR: define linkonce_odr void @a()
+; check that @a is no longe a linkonce_odr definition
+; IR-NOT: define linkonce_odr void @a()
----------------
longer 


http://reviews.llvm.org/D19527





More information about the llvm-commits mailing list