OSDN Git Service

[RISCV][DebugInfo] Fix dwarf-riscv-relocs.ll test on Windows
authorAlex Bradbury <asb@lowrisc.org>
Thu, 18 Jul 2019 07:25:56 +0000 (07:25 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Thu, 18 Jul 2019 07:25:56 +0000 (07:25 +0000)
Windows sees DW_AT_decl_file (".\dwarf-riscv-relocs.c") while Linux sees
DW_AT_decl_file ("./dwarf-riscv-relocs.c").

This fixes a failure introduced in rL366402.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366410 91177308-0d34-0410-b5e6-96231b3b80d8

test/DebugInfo/RISCV/dwarf-riscv-relocs.ll

index db6571d..c37336c 100644 (file)
@@ -26,7 +26,7 @@
 ; DWARF-DUMP: DW_AT_name        ("dwarf-riscv-relocs.c")
 ; DWARF-DUMP: DW_AT_comp_dir    (".")
 ; DWARF-DUMP: DW_AT_name      ("main")
-; DWARF-DUMP: DW_AT_decl_file ("./dwarf-riscv-relocs.c")
+; DWARF-DUMP: DW_AT_decl_file ("{{.*}}dwarf-riscv-relocs.c")
 ; DWARF-DUMP: DW_AT_decl_line (1)
 ; DWARF-DUMP: DW_AT_type      (0x00000032 "int")
 ; DWARF-DUMP: DW_AT_name      ("int")