Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bolt/lib/Core/BinaryContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1581,8 +1581,7 @@ void BinaryContext::foldFunction(BinaryFunction &ChildBF,
// placeholder so that getSymbol() doesn't crash. In non-relocation mode,
// this effectively renames the function.
WriteCtxLock.lock();
ChildBF.getSymbols().push_back(
Ctx->getOrCreateSymbol("__ICF_" + ChildName.str()));
ChildBF.getSymbols().push_back(Ctx->getOrCreateSymbol("__ICF_" + ChildName));
WriteCtxLock.unlock();

ChildBF.setFolded(&ParentBF);
Expand Down
2 changes: 1 addition & 1 deletion flang/lib/Optimizer/Dialect/FIROps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6553,7 +6553,7 @@ static mlir::ParseResult parseSpecifierList(

if (regionArgs.size() != regionArgTypes.size())
return parser.emitError(parser.getNameLoc(), "mismatch in number of " +
specifierKeyword.str() +
specifierKeyword +
" arg and types");

if (failed(parser.parseRParen()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ FIROpenACCSupportAnalysis::emitNYI(Location loc, const Twine &message) {
TODO(loc, message);
// Should be unreachable, but we return an actual diagnostic
// to satisfy the interface.
return mlir::emitError(loc, "not yet implemented: " + message.str());
return mlir::emitError(loc, "not yet implemented: " + message);
}

bool FIROpenACCSupportAnalysis::isValidSymbolUse(Operation *user,
Expand Down
2 changes: 1 addition & 1 deletion lld/ELF/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2622,7 +2622,7 @@ static void writeDependencyFile(Ctx &ctx) {
// * $ is escapes as $$.
auto printFilename = [](raw_fd_ostream &os, StringRef filename) {
llvm::SmallString<256> nativePath;
llvm::sys::path::native(filename.str(), nativePath);
llvm::sys::path::native(filename, nativePath);
llvm::sys::path::remove_dots(nativePath, /*remove_dot_dot=*/true);
for (unsigned i = 0, e = nativePath.size(); i != e; ++i) {
if (nativePath[i] == '#') {
Expand Down
2 changes: 1 addition & 1 deletion lld/ELF/LTO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static lto::Config createConfig(Ctx &ctx) {
c.Options.BBSections = BasicBlockSection::None;
} else {
ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr =
MemoryBuffer::getFile(ctx.arg.ltoBasicBlockSections.str());
MemoryBuffer::getFile(ctx.arg.ltoBasicBlockSections);
if (!MBOrErr) {
ErrAlways(ctx) << "cannot open " << ctx.arg.ltoBasicBlockSections << ":"
<< MBOrErr.getError().message();
Expand Down
2 changes: 1 addition & 1 deletion lld/MachO/DriverUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ macho::findPathCombination(const Twine &name,
bool exists = fs::exists(location);
searchedDylib(location, exists);
if (exists)
return saver().save(location.str());
return saver().save(location);
}
}
return {};
Expand Down
2 changes: 1 addition & 1 deletion lld/MachO/ObjC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ void ObjcCategoryMerger::doMerge() {
}
if (!merged)
warn("ObjC category merging skipped for class symbol' " +
baseClass->getName().str() + "'\n");
baseClass->getName() + "'\n");
}

// Erase all categories that were merged
Expand Down
2 changes: 1 addition & 1 deletion mlir/lib/Transforms/ViewOpGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ std::unique_ptr<Pass> mlir::createViewOpGraphPass(raw_ostream &os) {
/// Generate a CFG for a region and show it in a window.
static void llvmViewGraph(Region &region, const Twine &name) {
int fd;
std::string filename = llvm::createGraphFilename(name.str(), fd);
std::string filename = llvm::createGraphFilename(name, fd);
{
llvm::raw_fd_ostream os(fd, /*shouldClose=*/true);
if (fd == -1) {
Expand Down