From: Alex Bradbury Date: Thu, 18 Jul 2019 07:25:56 +0000 (+0000) Subject: [RISCV][DebugInfo] Fix dwarf-riscv-relocs.ll test on Windows X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd81229099e6b5f29fc4b1418153c994016e6870;p=llvm [RISCV][DebugInfo] Fix dwarf-riscv-relocs.ll test on Windows 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 --- diff --git a/test/DebugInfo/RISCV/dwarf-riscv-relocs.ll b/test/DebugInfo/RISCV/dwarf-riscv-relocs.ll index db6571d0998..c37336c36a0 100644 --- a/test/DebugInfo/RISCV/dwarf-riscv-relocs.ll +++ b/test/DebugInfo/RISCV/dwarf-riscv-relocs.ll @@ -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")