forked from OSchip/llvm-project
Try to fix Windows bots after r355226.
Windows has two path separator characters. llvm-svn: 355235
This commit is contained in:
parent
628472dde2
commit
d8632c92a7
|
@ -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