diff options
| author | Shoaib Meenai <smeenai@fb.com> | 2018-01-26 00:15:25 +0000 |
|---|---|---|
| committer | Shoaib Meenai <smeenai@fb.com> | 2018-01-26 00:15:25 +0000 |
| commit | d8fd16b08f1fdcf0ef5294624be826a6cd38eb86 (patch) | |
| tree | 7b3c15117100972332cf9ca39148a8e7c438af0e /llvm/test/CodeGen | |
| parent | 6394df9fc48b26c65cf525d92500c5b43ba81fdc (diff) | |
| download | bcm5719-llvm-d8fd16b08f1fdcf0ef5294624be826a6cd38eb86.tar.gz bcm5719-llvm-d8fd16b08f1fdcf0ef5294624be826a6cd38eb86.zip | |
[CodeGen] Ignore private symbols in llvm.used for COFF
Similar to the existing handling for internal symbols, private symbols
are also not visible to the linker and should be ignored.
llvm-svn: 323483
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/coff-no-dead-strip.ll | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/coff-no-dead-strip.ll b/llvm/test/CodeGen/X86/coff-no-dead-strip.ll index 4f57a0f9b16..f82b5f003aa 100644 --- a/llvm/test/CodeGen/X86/coff-no-dead-strip.ll +++ b/llvm/test/CodeGen/X86/coff-no-dead-strip.ll @@ -5,15 +5,18 @@ @j = weak global i32 0 @k = internal global i32 0 declare x86_vectorcallcc void @l() +@m = private global i32 0 -@llvm.used = appending global [4 x i8*] [i8* bitcast (i32* @i to i8*), i8* bitcast (i32* @j to i8*), i8* bitcast (i32* @k to i8*), i8* bitcast (void ()* @l to i8*)] +@llvm.used = appending global [5 x i8*] [i8* bitcast (i32* @i to i8*), i8* bitcast (i32* @j to i8*), i8* bitcast (i32* @k to i8*), i8* bitcast (void ()* @l to i8*), i8* bitcast (i32* @m to i8*)] ; CHECK: .section .drectve ; CHECK-ULP: .ascii " /INCLUDE:_i" ; CHECK-ULP: .ascii " /INCLUDE:_j" ; CHECK-ULP-NOT: .ascii " /INCLUDE:_k" +; CHECK-ULP-NOT: .ascii " /INCLUDE:L_m" ; CHECK-NOULP: .ascii " /INCLUDE:i" ; CHECK-NOULP: .ascii " /INCLUDE:j" ; CHECK-NOULP-NOT: .ascii " /INCLUDE:k" +; CHECK-NOULP-NOT: .ascii " /INCLUDE:.Lm" ; CHECK: .ascii " /INCLUDE:l@@0" |

