]> granicus.if.org Git - llvm/commit
[DebugLine] Improve path handling.
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 14 Aug 2019 17:00:10 +0000 (17:00 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 14 Aug 2019 17:00:10 +0000 (17:00 +0000)
commit5fbbf499ea804510a38287c8fee2f7e9c266edba
treebc51973c6fb882314cc1cd45a290528c7d07a361
parentc6928235d74d2f67f09011c9c7ca87c8ae8953ec
[DebugLine] Improve path handling.

After switching over LLDB's line table parser to libDebugInfo, we
noticed two regressions on the Windows bot. The problem is that when
obtaining a file from the line table prologue, we append paths without
specifying a path style. This leads to incorrect results on Windows for
debug info containing Posix paths:

  0x0000000000201000: /tmp\b.c, is_start_of_statement = TRUE

This patch is an attempt to fix that by guessing the path style whenever
possible.

Differential revision: https://reviews.llvm.org/D66227

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368879 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARF/DWARFDebugLine.cpp