We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17cf52b commit 7718c55Copy full SHA for 7718c55
llvm/lib/TableGen/Main.cpp
@@ -91,8 +91,15 @@ static std::string escapeDependencyFilename(StringRef Filename) {
91
std::string Res;
92
raw_string_ostream OS(Res);
93
94
+ // Only transform the path to native on Windows, where backslashes are valid
95
+ // path separators. On non-Windows platforms, we don't want backslashes in
96
+ // filenames to be incorrectly treated as path separators.
97
+#ifdef _WIN32
98
SmallString<256> NativePath;
99
sys::path::native(Filename, NativePath);
100
+#else
101
+ StringRef NativePath = Filename;
102
+#endif
103
104
for (unsigned I = 0, E = NativePath.size(); I != E; ++I) {
105
if (NativePath[I] == '#')
0 commit comments