summaryrefslogtreecommitdiff
path: root/mlir/lib/Target/LLVM/ModuleToObject.cpp
diff options
context:
space:
mode:
authorJOE1994 <joseph942010@gmail.com>2024-09-15 21:12:09 -0400
committerJOE1994 <joseph942010@gmail.com>2024-09-15 21:33:42 -0400
commit5a6e52d6ef96d2bcab6dc50bdb369662ff17d2a0 (patch)
tree0c3aa7b680ab42fb4111408151cecd80e8cfc7de /mlir/lib/Target/LLVM/ModuleToObject.cpp
parenta248ec3178293d3df0ceb5c6501c2532a20339fd (diff)
[mlir] Nits on uses of llvm::raw_string_ostream (NFC)
* Strip calls to raw_string_ostream::flush(), which is essentially a no-op * Strip unneeded calls to raw_string_ostream::str(), to avoid excess indirection.
Diffstat (limited to 'mlir/lib/Target/LLVM/ModuleToObject.cpp')
-rw-r--r--mlir/lib/Target/LLVM/ModuleToObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Target/LLVM/ModuleToObject.cpp b/mlir/lib/Target/LLVM/ModuleToObject.cpp
index d94c10de8d7c..77391341adaa 100644
--- a/mlir/lib/Target/LLVM/ModuleToObject.cpp
+++ b/mlir/lib/Target/LLVM/ModuleToObject.cpp
@@ -182,7 +182,7 @@ ModuleToObject::translateToISA(llvm::Module &llvmModule,
codegenPasses.run(llvmModule);
}
- return stream.str();
+ return targetISA;
}
void ModuleToObject::setDataLayoutAndTriple(llvm::Module &module) {