forked from OSchip/llvm-project
[lld] Replace SmallStr.str().str() with std::string conversion operator.
Use the std::string conversion operator introduced in
d7049213d0
.
This commit is contained in:
parent
509e21a1b9
commit
3e24242a7d
|
@ -1095,7 +1095,7 @@ Optional<std::string> getReproduceFile(const opt::InputArgList &args) {
|
|||
if (auto *arg = args.getLastArg(OPT_linkrepro)) {
|
||||
SmallString<64> path = StringRef(arg->getValue());
|
||||
sys::path::append(path, "repro.tar");
|
||||
return path.str().str();
|
||||
return std::string(path);
|
||||
}
|
||||
|
||||
return None;
|
||||
|
|
|
@ -212,7 +212,7 @@ static Optional<std::string> findFile(StringRef path1, const Twine &path2) {
|
|||
path::append(s, path1, path2);
|
||||
|
||||
if (fs::exists(s))
|
||||
return s.str().str();
|
||||
return std::string(s);
|
||||
return None;
|
||||
}
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ static Optional<std::string> findFile(StringRef path1, const Twine &path2) {
|
|||
SmallString<128> s;
|
||||
sys::path::append(s, path1, path2);
|
||||
if (sys::fs::exists(s))
|
||||
return s.str().str();
|
||||
return std::string(s);
|
||||
return None;
|
||||
}
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ static Optional<std::string> findFile(StringRef path1, const Twine &path2) {
|
|||
SmallString<128> s;
|
||||
path::append(s, path1, path2);
|
||||
if (fs::exists(s))
|
||||
return s.str().str();
|
||||
return std::string(s);
|
||||
return None;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue