Fix tests on Windows after D49466
authorFangrui Song <maskray@google.com>
Wed, 27 Nov 2019 00:09:22 +0000 (16:09 -0800)
committerFangrui Song <maskray@google.com>
Wed, 27 Nov 2019 00:15:39 +0000 (16:15 -0800)
commit3bb24bf25767ef5bbcef958b484e7a06d8689204
treecd911a5c9b0ba7a12a5c2024312baa034c697805
parentdf773ebb5f8ff54cda385f4491ff877464228c18
Fix tests on Windows after D49466

It is tricky to use replace_path_prefix correctly on Windows which uses
backslashes as native path separators. Switch back to the old approach
(startswith is not ideal) to appease build bots for now.
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/Lex/PPMacroExpansion.cpp
clang/test/CodeGen/debug-prefix-map.c