return "/lib/ld-linux-mipsn8.so.1";
return "/lib/ld.so.1";
} else if (ToolChain.getArch() == llvm::Triple::mips64 ||
- ToolChain.getArch() == llvm::Triple::mips64el) {
- std::string LinkerFile = mips::isNaN2008(Args) ? "ld-linux-mipsn8.so.1"
- : "ld.so.1";
+ ToolChain.getArch() == llvm::Triple::mips64el) {
+ std::string LinkerFile =
+ mips::isNaN2008(Args) ? "ld-linux-mipsn8.so.1" : "ld.so.1";
if (mips::hasMipsAbiArg(Args, "n32"))
return "/lib32/" + LinkerFile;
return "/lib64/" + LinkerFile;
Upper->addRegularFile("/file2");
{
- std::vector<std::string> Contents = { "/file2", "/file1" };
+ std::vector<std::string> Contents = {"/file2", "/file1"};
checkContents(O->dir_begin("/", EC), Contents);
}
Upper->addRegularFile("/dir2/foo");
checkContents(O->dir_begin("/dir2", EC), ArrayRef<std::string>("/dir2/foo"));
{
- std::vector<std::string> Contents = { "/dir2", "/file2", "/dir1", "/file1" };
+ std::vector<std::string> Contents = {"/dir2", "/file2", "/dir1", "/file1"};
checkContents(O->dir_begin("/", EC), Contents);
}
}
Lower->addRegularFile("/file1");
Upper->addRegularFile("/file3");
{
- std::vector<std::string> Contents = { "/file3", "/file2", "/file1" };
+ std::vector<std::string> Contents = {"/file3", "/file2", "/file1"};
checkContents(O->dir_begin("/", EC), Contents);
}
}
Upper->addRegularFile("/onlyInUp", sys::fs::owner_all);
Upper->addRegularFile("/hiddenByUp", sys::fs::owner_all);
{
- std::vector<std::string> Contents = { "/hiddenByUp", "/onlyInUp",
- "/hiddenByMid", "/onlyInMid", "/onlyInLow" };
+ std::vector<std::string> Contents = {
+ "/hiddenByUp", "/onlyInUp", "/hiddenByMid", "/onlyInMid", "/onlyInLow"};
checkContents(O->dir_begin("/", EC), Contents);
}
std::error_code EC;
{
- std::vector<std::string> Contents = { "//root/file1", "//root/file2",
- "//root/file3", "//root/foo" };
+ std::vector<std::string> Contents = {"//root/file1", "//root/file2",
+ "//root/file3", "//root/foo"};
checkContents(O->dir_begin("//root/", EC), Contents);
}
{
- std::vector<std::string> Contents = {
- "//root/foo/bar/a", "//root/foo/bar/b" };
+ std::vector<std::string> Contents = {"//root/foo/bar/a",
+ "//root/foo/bar/b"};
checkContents(O->dir_begin("//root/foo/bar", EC), Contents);
}
}
-