[llvm] SymbolizableObjectFile: Fix Wasm test to avoid layering violation (PR #193574)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 00:56:26 PDT 2026


================
@@ -25,23 +28,23 @@ bar:
 # OBJ:      <foo>:
 # OBJ-EMPTY:
 # OBJ-NEXT: ; foo():
-# OBJ-NEXT: ; {{.*}}line-numbers.s:13
+# OBJ-NEXT: ; {{.*}}line-numbers.s:16
----------------
jh7370 wrote:

If I remember rightly, you should be able to use FileCheck's `[[@LINE+X]]` pseudo variable (I can't recall off the top of my head what the exact syntax looks like) to avoid needing to remember to update things if you change comments or whatever. Alternatively, use split-file to put the assembly in its own separate file.

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


More information about the llvm-commits mailing list