[llvm] Normalize file path to fix problems with different folder separators. (PR #215225)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 07:24:49 PDT 2026


================
@@ -67,7 +67,8 @@ attributes #1 = { nounwind readnone }
 !23 = !DILocation(line: 8, column: 3, scope: !14)
 ; LINES: <main>:
 ; LINES-NEXT: main():
-; LINES-NEXT: SRC_COMPDIR/source-interleave-hexagon.c:6
+;; Show that directory separators are normalized to the preferred character.
+; LINES-NEXT: Inputs[[SEP]]source-interleave-hexagon.c:6
----------------
VladimirMedic wrote:

I also made a build with Hexagon target enabled, and test passes:
 build/bin/llvm-lit -v llvm/test/tools/llvm-objdump/ELF/Hexagon
-- Testing: 5 tests, 5 workers --
PASS: LLVM :: tools/llvm-objdump/ELF/Hexagon/truncated-inst.yaml (1 of 5)
PASS: LLVM :: tools/llvm-objdump/ELF/Hexagon/packet-reset-on-label.s (2 of 5)
PASS: LLVM :: tools/llvm-objdump/ELF/Hexagon/plt.test (3 of 5)
PASS: LLVM :: tools/llvm-objdump/ELF/Hexagon/source-interleave-hexagon.ll (4 of 5)
PASS: LLVM :: tools/llvm-objdump/ELF/Hexagon/hexagon-bundles.s (5 of 5)

Testing Time: 0.13s

Total Discovered Tests: 5
  Passed: 5 (100.00%)

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


More information about the llvm-commits mailing list