[PATCH] D130118: [1/3] [LLD] [MinGW] Implement the --exclude-symbols option

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 05:00:04 PDT 2022


mstorsjo marked an inline comment as done.
mstorsjo added inline comments.


================
Comment at: lld/test/COFF/exclude-symbols.s:5
+// RUN: lld-link -lldmingw -dll -out:%t.dll %t.o -noentry -exclude-symbols:sym2,unknownsym -exclude-symbols:sym3
+// RUN: llvm-readobj --coff-exports %t.dll | grep Name: | FileCheck %s
+
----------------
MaskRay wrote:
> `grep Name:` can be expressed with pure FileCheck directives with `--implicit-check-not=Name:`
> 
> ```
> // CHECK: Name:
> // CHECK: Name: sym1
> ```
Thanks - that seems to work.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130118/new/

https://reviews.llvm.org/D130118



More information about the llvm-commits mailing list