aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
diff options
context:
space:
mode:
authorJOE1994 <joseph942010@gmail.com>2024-09-13 06:22:59 -0400
committerJOE1994 <joseph942010@gmail.com>2024-09-13 06:23:54 -0400
commit6c0b1e75e367e73cc6d1b59d557f513beb34afd0 (patch)
tree01b5dca3e0f0c615235ea0a56b1f0733b14ec97f /llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
parent9cd93774098c861c260090a690f428b7ae031c65 (diff)
downloadllvm-6c0b1e75e367e73cc6d1b59d557f513beb34afd0.zip
llvm-6c0b1e75e367e73cc6d1b59d557f513beb34afd0.tar.gz
llvm-6c0b1e75e367e73cc6d1b59d557f513beb34afd0.tar.bz2
[llvm][tools] Strip unneeded uses of raw_string_ostream::str() (NFC)
Remove unnecessary layer of indirection.
Diffstat (limited to 'llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp')
-rw-r--r--llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp b/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
index 77ae9b4..3d3f3f0 100644
--- a/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
+++ b/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
@@ -183,7 +183,7 @@ static Error validateArchitectureName(StringRef ArchitectureName) {
return createStringError(
std::errc::invalid_argument,
"invalid architecture '%s': valid architecture names are %s",
- ArchitectureName.str().c_str(), OS.str().c_str());
+ ArchitectureName.str().c_str(), Buf.c_str());
}
return Error::success();
}