[llvm] 1e29c3a - [WebAssembly][Objcopy] Check that --only-keep-debug removes known sections

Derek Schuff via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 16:48:04 PDT 2022


Author: Derek Schuff
Date: 2022-06-07T16:47:50-07:00
New Revision: 1e29c3a12fa7bdf406e79d8c6e43aebbd2f724a7

URL: https://github.com/llvm/llvm-project/commit/1e29c3a12fa7bdf406e79d8c6e43aebbd2f724a7
DIFF: https://github.com/llvm/llvm-project/commit/1e29c3a12fa7bdf406e79d8c6e43aebbd2f724a7.diff

LOG: [WebAssembly][Objcopy] Check that --only-keep-debug removes known sections

NFC; Just update the test to ensure that both known and custom sections
are removed.
Review left over from https://reviews.llvm.org/D126509

Added: 
    

Modified: 
    llvm/test/tools/llvm-objcopy/wasm/only-keep-debug.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-objcopy/wasm/only-keep-debug.test b/llvm/test/tools/llvm-objcopy/wasm/only-keep-debug.test
index 88840712767a4..fc57329bdd74c 100644
--- a/llvm/test/tools/llvm-objcopy/wasm/only-keep-debug.test
+++ b/llvm/test/tools/llvm-objcopy/wasm/only-keep-debug.test
@@ -15,6 +15,7 @@
 
 # CHECK:      Sections:
 # KEEPTYPE:     - Type: TYPE
+# CHECK-NOT:    - Type: TYPE
 # CHECK:        - Type: CUSTOM
 # CHECK-NEXT:     Name: .debug_info
 # CHECK:        - Type: CUSTOM


        


More information about the llvm-commits mailing list