mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-21 13:33:26 +00:00
Build fixes for pdb-diff test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307556 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
80e0f20bde
commit
e584c228c6
@ -101,8 +101,8 @@ struct BinaryPathProvider {
|
|||||||
|
|
||||||
SmallString<64> removeRoot(StringRef Path, bool IsRight) const {
|
SmallString<64> removeRoot(StringRef Path, bool IsRight) const {
|
||||||
SmallString<64> Native(Path);
|
SmallString<64> Native(Path);
|
||||||
SmallString<64> Root =
|
auto &RootOpt = IsRight ? opts::diff::RightRoot : opts::diff::LeftRoot;
|
||||||
IsRight ? opts::diff::RightRoot : opts::diff::LeftRoot;
|
SmallString<64> Root(static_cast<std::string>(RootOpt));
|
||||||
// pdb paths always use windows syntax, convert slashes to backslashes.
|
// pdb paths always use windows syntax, convert slashes to backslashes.
|
||||||
sys::path::native(Root, sys::path::Style::windows);
|
sys::path::native(Root, sys::path::Style::windows);
|
||||||
if (sys::path::has_stem(Root, sys::path::Style::windows))
|
if (sys::path::has_stem(Root, sys::path::Style::windows))
|
||||||
@ -449,7 +449,7 @@ diffOneModule(DiffPrinter &D,
|
|||||||
|
|
||||||
BinaryPathProvider PathProvider(28);
|
BinaryPathProvider PathProvider(28);
|
||||||
auto Iter = llvm::find_if(
|
auto Iter = llvm::find_if(
|
||||||
Other, [&Item, &PathProvider, ItemIsRight,
|
Other, [&PathProvider, ItemIsRight,
|
||||||
L](const std::pair<uint32_t, DbiModuleDescriptor> &Other) {
|
L](const std::pair<uint32_t, DbiModuleDescriptor> &Other) {
|
||||||
const auto *Left = L;
|
const auto *Left = L;
|
||||||
const auto *Right = &Other;
|
const auto *Right = &Other;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user