1;; Test upgrade linker option doesn't create duplicated linker options. 2;; Inputs is generated from IR and checked in as bitcode as it will get rejected by verifier. 3;; define void @test() { 4;; ret void 5;; } 6;; !llvm.module.flags = !{!0} 7;; !0 = !{i32 6, !"Linker Options", !1} 8;; !1 = !{!2} 9;; !2 = !{!"-framework", !"Foundation"} 10 11; RUN: llvm-dis %S/Inputs/linker-options.bc -o - | FileCheck %s 12; CHECK: !llvm.linker.options = !{!2} 13