[PATCH] D124473: [NVPTX] Fix dwarf-file-dir.ll on Windows
Andrew Savonichev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 26 12:54:47 PDT 2022
asavonic created this revision.
asavonic added reviewers: tra, probinson.
Herald added subscribers: mattd, gchakrabarti, jholewinski.
Herald added a project: All.
asavonic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The test was added in D121299 <https://reviews.llvm.org/D121299> and it failed on Windows:
error: CHECK-NODIR: expected string
not found in input
; CHECK-NODIR: .file {{[0-9]+}} "/tmp/dbginfo/a/a.cpp"
^
<stdin>:1:1: note: scanning from here
//
^
<stdin>:25:2: note: possible intended match here
.file 1 "/tmp/dbginfo/a\\a.cpp"
I don't have a windows machine to test this, but I've seen this {{/|\\\\}}
pattern in other NVPTX tests, so I hope it works.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124473
Files:
llvm/test/DebugInfo/NVPTX/dwarf-file-dir.ll
Index: llvm/test/DebugInfo/NVPTX/dwarf-file-dir.ll
===================================================================
--- llvm/test/DebugInfo/NVPTX/dwarf-file-dir.ll
+++ llvm/test/DebugInfo/NVPTX/dwarf-file-dir.ll
@@ -1,10 +1,7 @@
; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda | FileCheck --check-prefix=CHECK-NODIR %s
; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda -dwarf-directory=1 | FileCheck --check-prefix=CHECK-DIR %s
-; compilation on Windows results in: /tmp/dbginfo/a\\a.cpp
-; UNSUPPORTED: windows
-
-; CHECK-NODIR: .file {{[0-9]+}} "/tmp/dbginfo/a/a.cpp"
+; CHECK-NODIR: .file {{[0-9]+}} "/tmp/dbginfo/a{{/|\\\\}}a.cpp"
;
; ptxas does not support .file directory syntax, but it can still be
; forced by -dwarf-directory=1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124473.425287.patch
Type: text/x-patch
Size: 743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220426/0246436e/attachment.bin>
More information about the llvm-commits
mailing list