[llvm] [llvm-objcopy][ELF] Add an option to remove notes (PR #118739)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 01:08:33 PST 2025


================
@@ -0,0 +1,47 @@
+# RUN: yaml2obj --docnum=1 %s -o %t1
+# RUN: llvm-objcopy --remove-note=1 %t1 %t1o 2>&1 | FileCheck %s --check-prefix=NOTE_SEGMENT
+# NOTE_SEGMENT: warning: note segments are not supported
----------------
jh7370 wrote:

Nit: personal preference that I think is the more common norm in these tests is to avoid `_` in check prefixes and just use `-`, as it reduces the risk of typos (and therefore check patterns that do nothing).

https://github.com/llvm/llvm-project/pull/118739


More information about the llvm-commits mailing list