aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Expression/IRExecutionUnit.cpp
diff options
context:
space:
mode:
authorYoungsuk Kim <joseph942010@gmail.com>2024-09-16 00:26:51 -0400
committerGitHub <noreply@github.com>2024-09-16 00:26:51 -0400
commitd7796855b87911b8ae6c726ab5df4949f173dbd2 (patch)
tree5554fd0a1cfbcfa29e8276f329ac0e49b46be3f4 /lldb/source/Expression/IRExecutionUnit.cpp
parent4fdccd346bb5969707845762d3c27f4806d46de8 (diff)
downloadllvm-d7796855b87911b8ae6c726ab5df4949f173dbd2.tar.gz
llvm-d7796855b87911b8ae6c726ab5df4949f173dbd2.tar.bz2
llvm-d7796855b87911b8ae6c726ab5df4949f173dbd2.zip
[lldb] Nits on uses of llvm::raw_string_ostream (NFC) (#108745)
As specified in the docs, 1) raw_string_ostream is always unbuffered and 2) the underlying buffer may be used directly ( 65b13610a5226b84889b923bae884ba395ad084d for further reference ) * Don't call raw_string_ostream::flush(), which is essentially a no-op. * Avoid unneeded calls to raw_string_ostream::str(), to avoid excess indirection.
Diffstat (limited to 'lldb/source/Expression/IRExecutionUnit.cpp')
-rw-r--r--lldb/source/Expression/IRExecutionUnit.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp
index d2f2ee26fd43..15ca2ddbbae0 100644
--- a/lldb/source/Expression/IRExecutionUnit.cpp
+++ b/lldb/source/Expression/IRExecutionUnit.cpp
@@ -261,8 +261,6 @@ void IRExecutionUnit::GetRunnableInfo(Status &error, lldb::addr_t &func_addr,
m_module->print(oss, nullptr);
- oss.flush();
-
LLDB_LOGF(log, "Module being sent to JIT: \n%s", s.c_str());
}