Vendor import of llvm-project main llvmorg-14-init-17616-g024a1fab5c35.
This commit is contained in:
@@ -41,7 +41,7 @@ std::string CoveragePrinter::getOutputPath(StringRef Path, StringRef Extension,
|
||||
sys::path::append(FullPath, getCoverageDir());
|
||||
|
||||
SmallString<256> ParentPath = sys::path::parent_path(Path);
|
||||
sys::path::remove_dots(ParentPath, /*remove_dot_dots=*/true);
|
||||
sys::path::remove_dots(ParentPath, /*remove_dot_dot=*/true);
|
||||
sys::path::append(FullPath, sys::path::relative_path(ParentPath));
|
||||
|
||||
auto PathFilename = (sys::path::filename(Path) + "." + Extension).str();
|
||||
@@ -157,7 +157,7 @@ SourceCoverageView::create(StringRef SourceName, const MemoryBuffer &File,
|
||||
|
||||
std::string SourceCoverageView::getSourceName() const {
|
||||
SmallString<128> SourceText(SourceName);
|
||||
sys::path::remove_dots(SourceText, /*remove_dot_dots=*/true);
|
||||
sys::path::remove_dots(SourceText, /*remove_dot_dot=*/true);
|
||||
sys::path::native(SourceText);
|
||||
return std::string(SourceText.str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user