-shared was hiding the fact that the intrinsic wasn't being found.
llvm-svn: 263197
ExtraKeeps.push_back(GV->getName().copy(Alloc));
continue;
}
+ if (Flags & BasicSymbolRef::SF_FormatSpecific)
+ continue;
uint8_t Visibility = getGvVisibility(GV);
SmallString<64> Name;
; REQUIRES: x86
; RUN: llvm-as %s -o %t1.o
; RUN: ld.lld -m elf_x86_64 %t1.o %t1.o -o %t.so -shared
+; RUN: llvm-nm %t.so | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Should not try to merge a declaration into the combined module.
declare i32 @llvm.ctpop.i32(i32)
+; CHECK-NOT: llvm.ctpop.i32