Revert "Convert linkonce* to weak* instead of strong."
[oota-llvm.git] / test / Other / extract-linkonce.ll
index 4c6b6b76a4abf10f43c1b885eb5ace45c8110b83..31fbf3ac46327f4fec04f644ac669da78e06009d 100644 (file)
@@ -1,16 +1,15 @@
 ; RUN: llvm-extract -func foo -S < %s | FileCheck %s
 ; RUN: llvm-extract -delete -func foo -S < %s | FileCheck --check-prefix=DELETE %s
 
-; Test that linkonce definitions are mapped to weak so that they are not
-; dropped.
+; Test that we don't convert weak_odr to external definitions.
 
-; CHECK:      @bar = external global i32
-; CHECK:      define weak i32* @foo() {
+; CHECK:      @bar = external hidden global i32
+; CHECK:      define hidden i32* @foo() {
 ; CHECK-NEXT:  ret i32* @bar
 ; CHECK-NEXT: }
 
-; DELETE: @bar = weak global i32 42
-; DELETE: declare i32* @foo()
+; DELETE: @bar = hidden global i32 42
+; DELETE: declare hidden i32* @foo()
 
 @bar = linkonce global i32 42