mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 06:29:59 +00:00
Try to fix Windows bots after r355226.
Windows has two path separator characters. llvm-svn: 355235
This commit is contained in:
parent
7ffb265155
commit
2827fda2e0
@ -583,7 +583,8 @@ void MCContext::setGenDwarfRootFile(StringRef InputFileName, StringRef Buffer) {
|
||||
if (FileName.empty() || FileName == "-")
|
||||
FileName = "<stdin>";
|
||||
if (FileName.consume_front(getCompilationDir()))
|
||||
FileName.consume_front(llvm::sys::path::get_separator());
|
||||
if (llvm::sys::path::is_separator(FileName.front()))
|
||||
FileName = FileName.drop_front();
|
||||
assert(!FileName.empty());
|
||||
setMCLineTableRootFile(
|
||||
/*CUID=*/0, getCompilationDir(), FileName, Cksum, None);
|
||||
|
Loading…
Reference in New Issue
Block a user